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

Classes

class  Extra
 

Public Member Functions

override object CreateExtra ()
 
override void OnActivate ()
 
void Build ()
 
void OnClick ()
 
void Refresh ()
 
- 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

GameObject goLv
 
UIText textLv
 
UIItem itemExp
 
UIItem itemKnowledge
 
UIItem itemInfluence
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Properties

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 3 of file WidgetExpHome.cs.

Member Function Documentation

◆ Build()

void WidgetExpHome.Build ( )
inline

Definition at line 37 of file WidgetExpHome.cs.

38 {
39 this.RebuildLayout();
40 Refresh();
41 }

References Refresh().

Referenced by OnActivate().

◆ CreateExtra()

override object WidgetExpHome.CreateExtra ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 26 of file WidgetExpHome.cs.

27 {
28 return new Extra();
29 }

◆ OnActivate()

override void WidgetExpHome.OnActivate ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 31 of file WidgetExpHome.cs.

32 {
33 Build();
34 InvokeRepeating("Refresh", 0.5f, 0.5f);
35 }

References Build().

◆ OnClick()

void WidgetExpHome.OnClick ( )
inline

Definition at line 43 of file WidgetExpHome.cs.

44 {
45 if (EMono.ui.BlockInput)
46 {
47 SE.BeepSmall();
48 return;
49 }
50 LayerChara layerChara = EMono.ui.ToggleLayer<LayerChara>();
51 if ((bool)layerChara)
52 {
53 layerChara.SetChara(EMono.pc).windows[0].SwitchContent(2);
54 layerChara.windowChara.ToggleFeatMode();
55 }
56 }
Definition: EMono.cs:4
static Chara pc
Definition: EMono.cs:13
static UI ui
Definition: EMono.cs:15
LayerChara SetChara(Chara c)
Definition: LayerChara.cs:9
WindowChara windowChara
Definition: LayerChara.cs:5
List< Window > windows
Definition: Layer.cs:116
void ToggleFeatMode()
Definition: WindowChara.cs:237

References EMono.pc, LayerChara.SetChara(), WindowChara.ToggleFeatMode(), EMono.ui, LayerChara.windowChara, and Layer.windows.

◆ Refresh()

void WidgetExpHome.Refresh ( )
inline

Definition at line 58 of file WidgetExpHome.cs.

59 {
60 goLv.SetActive(EMono.pc.feat > 0);
61 textLv.text = EMono.pc.feat.ToString() ?? "";
62 itemExp.text1.text = EMono.pc.exp + "/" + EMono.pc.ExpToNext;
63 itemExp.image1.fillAmount = (float)EMono.pc.exp / (float)EMono.pc.ExpToNext + 0.01f;
64 }
int ExpToNext
Definition: Card.cs:1884
int exp
Definition: Card.cs:382
int feat
Definition: Card.cs:358
GameObject goLv

References Card.exp, Card.ExpToNext, Card.feat, goLv, and EMono.pc.

Referenced by Build().

Member Data Documentation

◆ goLv

GameObject WidgetExpHome.goLv

Definition at line 14 of file WidgetExpHome.cs.

Referenced by Refresh().

◆ itemExp

UIItem WidgetExpHome.itemExp

Definition at line 18 of file WidgetExpHome.cs.

◆ itemInfluence

UIItem WidgetExpHome.itemInfluence

Definition at line 22 of file WidgetExpHome.cs.

◆ itemKnowledge

UIItem WidgetExpHome.itemKnowledge

Definition at line 20 of file WidgetExpHome.cs.

◆ textLv

UIText WidgetExpHome.textLv

Definition at line 16 of file WidgetExpHome.cs.

Property Documentation

◆ extra

Extra WidgetExpHome.extra
get

Definition at line 24 of file WidgetExpHome.cs.


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