Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
WidgetBottomBar Class Reference
Inheritance diagram for WidgetBottomBar:
Widget EMono IChangeResolution ISkinRoot

Classes

class  Extra
 

Public Member Functions

override object CreateExtra ()
 
override void OnActivate ()
 
override void OnSetContextMenu (UIContextMenu m)
 
void Refresh ()
 
override void OnChangeResolution ()
 
- Public Member Functions inherited from Widget
void Test ()
 
bool IsInRightMode ()
 
void Activate ()
 
void RefreshOrder ()
 
virtual void OnActivate ()
 
virtual object CreateExtra ()
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
void Close ()
 
void Reactivate ()
 
virtual void OnManagerActivate ()
 
virtual void OnManagerDeactivate ()
 
void SetAnchor (RectPosition p)
 
void SetPivot (RectPosition p)
 
virtual void OnChangePivot ()
 
void UpdateConfig ()
 
virtual void OnUpdateConfig ()
 
void ClampToScreen ()
 
virtual void OnChangeResolution ()
 
void OnChangePosition ()
 
virtual void OnChangeActionMode ()
 
virtual void OnFlip ()
 
bool IsAlignTop ()
 
Layer AddLayer (Layer l, Transform trans)
 
void RefreshTipPivotPosition ()
 
SkinSet GetSkin ()
 
SkinConfig GetSkinConfig ()
 
void SetSkin (int id, int v=0)
 
void TestSkin ()
 
virtual void ApplySkin ()
 
virtual void OnApplySkin ()
 
void InstantiateDeco (SkinDeco deco)
 
void AddDeco (SkinDeco deco)
 
void RemoveDeco (SkinDeco deco)
 
virtual bool CanShowContextMenu ()
 
void ShowContextMenu ()
 
void SetBaseContextMenu (UIContextMenu m)
 
virtual void OnSetContextMenu (UIContextMenu m)
 
void SetGridContextMenu (UIContextMenu m)
 
void SoundActivate ()
 
void OnChangeResolution ()
 
SkinSet GetSkin ()
 
SkinConfig GetSkinConfig ()
 

Public Attributes

Image imageSubBar
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Properties

override bool AlwaysBottom [get]
 
override Type SetSiblingAfter [get]
 
Extra extra [get]
 
- Properties inherited from Widget
string ID [get]
 
Config config [get]
 
SkinRoot skinRoot [get]
 
bool IsSealed [get]
 
virtual bool ShowStyleMenu [get]
 
virtual bool AlwaysTop [get]
 
virtual bool IsStaticPosition [get]
 
virtual bool AlwaysBottom [get]
 
virtual Type SetSiblingAfter [get]
 
virtual bool ShowInBuildMode [get]
 
virtual bool RightClickToClose [get]
 
virtual bool AllowRightClickToClose [get]
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Public Types inherited from Widget
enum  WidgetType { Default , ZoomMenu }
 
enum  State { Active , Inactive }
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 
- Protected Member Functions inherited from Widget
void ClampToScreenEnsured (Component c, Vector2 anchoredPos)
 
void ClampToScreen (RectTransform rect, float margin=10f)
 
- Protected Attributes inherited from Widget
bool flip
 

Detailed Description

Definition at line 5 of file WidgetBottomBar.cs.

Member Function Documentation

◆ CreateExtra()

override object WidgetBottomBar.CreateExtra ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 24 of file WidgetBottomBar.cs.

25 {
26 return new Extra();
27 }

◆ OnActivate()

override void WidgetBottomBar.OnActivate ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 29 of file WidgetBottomBar.cs.

30 {
31 Refresh();
33 }
override void OnChangeResolution()

References OnChangeResolution(), and Refresh().

◆ OnChangeResolution()

override void WidgetBottomBar.OnChangeResolution ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 62 of file WidgetBottomBar.cs.

63 {
64 base.OnChangeResolution();
65 this.Rect().sizeDelta = new Vector2(0.01f * (float)Screen.width * (float)extra.width / EMono.core.uiScale + 2f, extra.height + 10);
66 }
override float uiScale
Definition: Core.cs:95
Definition: EMono.cs:4
static Core core
Definition: EMono.cs:5

References EMono.core, and Core.uiScale.

Referenced by OnActivate(), and OnSetContextMenu().

◆ OnSetContextMenu()

override void WidgetBottomBar.OnSetContextMenu ( UIContextMenu  m)
inlinevirtual

Reimplemented from Widget.

Definition at line 35 of file WidgetBottomBar.cs.

36 {
37 _ = base.config.skin;
38 UIContextMenu uIContextMenu = m.AddChild("setting");
39 uIContextMenu.AddSlider("width", (float a) => a.ToString() ?? "", extra.width, delegate(float a)
40 {
41 extra.width = (int)a;
43 }, 10f, 100f, isInt: true);
44 uIContextMenu.AddSlider("height", (float a) => a.ToString() ?? "", extra.height, delegate(float a)
45 {
46 extra.height = (int)a;
48 }, 5f, 300f, isInt: true);
49 uIContextMenu.AddToggle("subBar", extra.subBar, delegate
50 {
52 Refresh();
53 });
55 }
UIContextMenuItem AddToggle(string idLang="", bool isOn=false, UnityAction< bool > action=null)
UIContextMenuItem AddSlider(string text, Func< float, string > textFunc, float value, Action< float > action, float min=0f, float max=1f, bool isInt=false, bool hideOther=true, bool useInput=false)
UIContextMenu AddChild(string idLang, TextAnchor anchor)
void SetBaseContextMenu(UIContextMenu m)
Definition: Widget.cs:608

References UIContextMenu.AddChild(), UIContextMenu.AddSlider(), UIContextMenu.AddToggle(), extra, WidgetBottomBar.Extra.height, OnChangeResolution(), Refresh(), WidgetBottomBar.Extra.subBar, and WidgetBottomBar.Extra.width.

◆ Refresh()

void WidgetBottomBar.Refresh ( )
inline

Definition at line 57 of file WidgetBottomBar.cs.

58 {
59 imageSubBar.SetActive(extra.subBar);
60 }

Referenced by OnActivate(), and OnSetContextMenu().

Member Data Documentation

◆ imageSubBar

Image WidgetBottomBar.imageSubBar

Definition at line 16 of file WidgetBottomBar.cs.

Property Documentation

◆ AlwaysBottom

override bool WidgetBottomBar.AlwaysBottom
get

Definition at line 18 of file WidgetBottomBar.cs.

◆ extra

Extra WidgetBottomBar.extra
get

Definition at line 22 of file WidgetBottomBar.cs.

Referenced by OnSetContextMenu().

◆ SetSiblingAfter

override Type WidgetBottomBar.SetSiblingAfter
get

Definition at line 20 of file WidgetBottomBar.cs.


The documentation for this class was generated from the following file: