Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
WidgetExp Class Reference
Inheritance diagram for WidgetExp:
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 WidgetExp.cs.

Member Function Documentation

◆ Build()

void WidgetExp.Build ( )
inline

Definition at line 37 of file WidgetExp.cs.

38 {
39 this.RebuildLayout();
40 Refresh();
41 }
void Refresh()
Definition: WidgetExp.cs:58

References Refresh().

Referenced by OnActivate().

◆ CreateExtra()

override object WidgetExp.CreateExtra ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 26 of file WidgetExp.cs.

27 {
28 return new Extra();
29 }

◆ OnActivate()

override void WidgetExp.OnActivate ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 31 of file WidgetExp.cs.

32 {
33 Build();
34 InvokeRepeating("Refresh", 0.5f, 0.5f);
35 }
void Build()
Definition: WidgetExp.cs:37

References Build().

◆ OnClick()

void WidgetExp.OnClick ( )
inline

Definition at line 43 of file WidgetExp.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 WidgetExp.Refresh ( )
inline

Definition at line 58 of file WidgetExp.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
Definition: WidgetExp.cs:14

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

Referenced by Build().

Member Data Documentation

◆ goLv

GameObject WidgetExp.goLv

Definition at line 14 of file WidgetExp.cs.

Referenced by Refresh().

◆ itemExp

UIItem WidgetExp.itemExp

Definition at line 18 of file WidgetExp.cs.

◆ itemInfluence

UIItem WidgetExp.itemInfluence

Definition at line 22 of file WidgetExp.cs.

◆ itemKnowledge

UIItem WidgetExp.itemKnowledge

Definition at line 20 of file WidgetExp.cs.

◆ textLv

UIText WidgetExp.textLv

Definition at line 16 of file WidgetExp.cs.

Property Documentation

◆ extra

Extra WidgetExp.extra
get

Definition at line 24 of file WidgetExp.cs.


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