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

Public Member Functions

override void OnActivate ()
 
void _Refresh ()
 
override void OnFlip ()
 
- 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 ()
 

Static Public Member Functions

static void Refresh ()
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Public Attributes

GameObject goMuteBGM
 
GameObject goHideBalloon
 
GameObject goLowBlock
 
UIText textDebug
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Static Public Attributes

static WidgetSystemIndicator Instance
 
- Static Public Attributes inherited from EMono
static Core core
 

Additional Inherited Members

- Public Types inherited from Widget
enum  WidgetType { Default , ZoomMenu }
 
enum  State { Active , Inactive }
 
- 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
 
- 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]
 

Detailed Description

Definition at line 4 of file WidgetSystemIndicator.cs.

Member Function Documentation

◆ _Refresh()

void WidgetSystemIndicator._Refresh ( )
inline

Definition at line 30 of file WidgetSystemIndicator.cs.

31 {
32 goMuteBGM.SetActive(EMono.Sound.muteBGM);
33 goHideBalloon.SetActive(!EMono.ui.rectDynamic.gameObject.activeSelf);
34 goLowBlock.SetActive(EMono.game.config.showRoof);
35 textDebug.SetActive(EMono.debug.enable);
36 textDebug.text = "*Debug* " + EMono.core.version.GetText();
37 this.RebuildLayout(recursive: true);
38 }
Version version
Definition: BaseCore.cs:17
bool enable
Definition: CoreDebug.cs:285
Definition: EMono.cs:4
static Core core
Definition: EMono.cs:5
static Game game
Definition: EMono.cs:7
static UI ui
Definition: EMono.cs:15
static SoundManager Sound
Definition: EMono.cs:39
static CoreDebug debug
Definition: EMono.cs:45
Config config
Definition: Game.cs:215
string GetText()
Definition: Version.cs:16

References Game.config, EMono.core, EMono.debug, CoreDebug.enable, EMono.game, Version.GetText(), goHideBalloon, goLowBlock, goMuteBGM, EMono.Sound, textDebug, EMono.ui, and BaseCore.version.

Referenced by OnActivate(), and Refresh().

◆ OnActivate()

override void WidgetSystemIndicator.OnActivate ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 24 of file WidgetSystemIndicator.cs.

25 {
26 Instance = this;
27 _Refresh();
28 }
static WidgetSystemIndicator Instance

References _Refresh(), and Instance.

◆ OnFlip()

override void WidgetSystemIndicator.OnFlip ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 40 of file WidgetSystemIndicator.cs.

41 {
42 GetComponent<HorizontalLayoutGroup>().childAlignment = (flip ? TextAnchor.LowerRight : TextAnchor.LowerLeft);
43 this.Rect().pivot = new Vector2(flip ? 1 : 0, 0f);
44 }
bool flip
Definition: Widget.cs:164

References Widget.flip.

◆ Refresh()

static void WidgetSystemIndicator.Refresh ( )
inlinestatic

Definition at line 16 of file WidgetSystemIndicator.cs.

17 {
18 if ((bool)Instance)
19 {
21 }
22 }

References _Refresh(), and Instance.

Referenced by CoreDebug.EnableDebugResource(), Scene.OnToggle(), UI.ShowBalloon(), Scene.ToggleBalloon(), and Scene.ToggleMuteBGM().

Member Data Documentation

◆ goHideBalloon

GameObject WidgetSystemIndicator.goHideBalloon

Definition at line 10 of file WidgetSystemIndicator.cs.

Referenced by _Refresh().

◆ goLowBlock

GameObject WidgetSystemIndicator.goLowBlock

Definition at line 12 of file WidgetSystemIndicator.cs.

Referenced by _Refresh().

◆ goMuteBGM

GameObject WidgetSystemIndicator.goMuteBGM

Definition at line 8 of file WidgetSystemIndicator.cs.

Referenced by _Refresh().

◆ Instance

WidgetSystemIndicator WidgetSystemIndicator.Instance
static

Definition at line 6 of file WidgetSystemIndicator.cs.

Referenced by OnActivate(), and Refresh().

◆ textDebug

UIText WidgetSystemIndicator.textDebug

Definition at line 14 of file WidgetSystemIndicator.cs.

Referenced by _Refresh().


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