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

Public Member Functions

override void _OnActivate ()
 
override void OnRefresh ()
 
- Public Member Functions inherited from BaseWidgetNotice
sealed override void OnActivate ()
 
virtual void _OnActivate ()
 
void _RefreshAll ()
 
virtual void OnRefresh ()
 
ItemNotice Add (BaseNotification n, Transform parent=null)
 
void Remove (BaseNotification n)
 
override void OnFlip ()
 
override void OnSetContextMenu (UIContextMenu m)
 
void RefreshLayout ()
 
override void OnApplySkin ()
 
- 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 RefreshAll ()
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Public Attributes

List< NotificationConditionconditions = new List<NotificationCondition>()
 
ItemNotice moldBuff
 
ItemNotice moldStance
 
- Public Attributes inherited from BaseWidgetNotice
Sprite[] sprites
 
List< BaseNotificationlist = new List<BaseNotification>()
 
VerticalLayoutGroup layout
 
VerticalLayoutGroup layout2
 
ItemNotice mold
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Static Public Attributes

static WidgetStats 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 BaseWidgetNotice
bool dirty
 
- 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 3 of file WidgetStats.cs.

Member Function Documentation

◆ _OnActivate()

override void WidgetStats._OnActivate ( )
inlinevirtual

Reimplemented from BaseWidgetNotice.

Definition at line 21 of file WidgetStats.cs.

22 {
23 Instance = this;
25 {
26 stats = () => EMono.pc.hunger
27 });
29 {
30 stats = () => EMono.pc.burden
31 });
33 {
34 stats = () => EMono.pc.depression
35 });
37 {
38 stats = () => EMono.pc.bladder
39 });
41 {
42 stats = () => EMono.pc.hygiene
43 });
45 {
46 stats = () => EMono.pc.sleepiness
47 });
49 {
50 stats = () => EMono.pc.stamina
51 });
53 }
ItemNotice Add(BaseNotification n, Transform parent=null)
Stats depression
Definition: Chara.cs:957
Stats sleepiness
Definition: Chara.cs:965
Stats hygiene
Definition: Chara.cs:961
Stats hunger
Definition: Chara.cs:951
Stats bladder
Definition: Chara.cs:959
Stats stamina
Definition: Chara.cs:955
Stats burden
Definition: Chara.cs:953
Definition: EMono.cs:4
static Chara pc
Definition: EMono.cs:13
static WidgetStats Instance
Definition: WidgetStats.cs:5

References BaseWidgetNotice.Add(), Chara.bladder, Chara.burden, Chara.depression, Chara.hunger, Chara.hygiene, Instance, EMono.pc, Chara.sleepiness, and Chara.stamina.

◆ OnRefresh()

override void WidgetStats.OnRefresh ( )
inlinevirtual

Reimplemented from BaseWidgetNotice.

Definition at line 55 of file WidgetStats.cs.

56 {
57 conditions.ForeachReverse(delegate(NotificationCondition a)
58 {
59 if (a.ShouldRemove())
60 {
61 conditions.Remove(a);
62 Remove(a);
63 dirty = true;
64 }
65 });
66 foreach (Condition condition in EMono.pc.conditions)
67 {
68 if (!condition.ShowInWidget)
69 {
70 continue;
71 }
72 bool flag = true;
73 foreach (NotificationCondition condition2 in conditions)
74 {
75 if (condition2.condition == condition)
76 {
77 flag = false;
78 break;
79 }
80 }
81 if (flag)
82 {
83 NotificationCondition notificationCondition = condition.CreateNotification() as NotificationCondition;
84 Add(notificationCondition);
85 conditions.Add(notificationCondition);
86 }
87 }
88 }
virtual bool ShowInWidget
Definition: BaseStats.cs:23
List< Condition > conditions
Definition: Chara.cs:196
override BaseNotification CreateNotification()
Definition: Condition.cs:30
List< NotificationCondition > conditions
Definition: WidgetStats.cs:7

References BaseWidgetNotice.Add(), NotificationCondition.condition, Chara.conditions, conditions, Condition.CreateNotification(), EMono.pc, NotificationCondition.ShouldRemove(), and BaseStats.ShowInWidget.

◆ RefreshAll()

static void WidgetStats.RefreshAll ( )
inlinestatic

Definition at line 13 of file WidgetStats.cs.

14 {
15 if ((bool)Instance)
16 {
18 }
19 }

References BaseWidgetNotice._RefreshAll(), and Instance.

Referenced by NotificationCondition.OnClick().

Member Data Documentation

◆ conditions

List<NotificationCondition> WidgetStats.conditions = new List<NotificationCondition>()

Definition at line 7 of file WidgetStats.cs.

Referenced by OnRefresh().

◆ Instance

◆ moldBuff

ItemNotice WidgetStats.moldBuff

Definition at line 9 of file WidgetStats.cs.

Referenced by NotificationBuff.GetMold().

◆ moldStance

ItemNotice WidgetStats.moldStance

Definition at line 11 of file WidgetStats.cs.

Referenced by NotificationStance.GetMold().


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