Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
WidgetExpHome.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
WidgetExpHome
:
Widget
4
{
5
public
class
Extra
6
{
7
public
bool
lv
;
8
9
public
bool
knowledge
;
10
11
public
bool
influence
;
12
}
13
14
public
GameObject
goLv
;
15
16
public
UIText
textLv
;
17
18
public
UIItem
itemExp
;
19
20
public
UIItem
itemKnowledge
;
21
22
public
UIItem
itemInfluence
;
23
24
public
Extra
extra
=> base.config.extra as
Extra
;
25
26
public
override
object
CreateExtra
()
27
{
28
return
new
Extra
();
29
}
30
31
public
override
void
OnActivate
()
32
{
33
Build
();
34
InvokeRepeating(
"Refresh"
, 0.5f, 0.5f);
35
}
36
37
public
void
Build
()
38
{
39
this.RebuildLayout();
40
Refresh
();
41
}
42
43
public
void
OnClick
()
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
}
57
58
public
void
Refresh
()
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
}
65
}
Card.ExpToNext
int ExpToNext
Definition:
Card.cs:1884
Card.exp
int exp
Definition:
Card.cs:382
Card.feat
int feat
Definition:
Card.cs:358
EMono
Definition:
EMono.cs:4
EMono.pc
static Chara pc
Definition:
EMono.cs:13
EMono.ui
static UI ui
Definition:
EMono.cs:15
LayerChara
Definition:
LayerChara.cs:2
LayerChara.SetChara
LayerChara SetChara(Chara c)
Definition:
LayerChara.cs:9
LayerChara.windowChara
WindowChara windowChara
Definition:
LayerChara.cs:5
Layer.windows
List< Window > windows
Definition:
Layer.cs:116
UIItem
Definition:
UIItem.cs:5
UIText
Definition:
UIText.cs:6
WidgetExpHome.Extra
Definition:
WidgetExpHome.cs:6
WidgetExpHome.Extra.influence
bool influence
Definition:
WidgetExpHome.cs:11
WidgetExpHome.Extra.lv
bool lv
Definition:
WidgetExpHome.cs:7
WidgetExpHome.Extra.knowledge
bool knowledge
Definition:
WidgetExpHome.cs:9
WidgetExpHome
Definition:
WidgetExpHome.cs:4
WidgetExpHome.OnClick
void OnClick()
Definition:
WidgetExpHome.cs:43
WidgetExpHome.Build
void Build()
Definition:
WidgetExpHome.cs:37
WidgetExpHome.extra
Extra extra
Definition:
WidgetExpHome.cs:24
WidgetExpHome.CreateExtra
override object CreateExtra()
Definition:
WidgetExpHome.cs:26
WidgetExpHome.itemInfluence
UIItem itemInfluence
Definition:
WidgetExpHome.cs:22
WidgetExpHome.Refresh
void Refresh()
Definition:
WidgetExpHome.cs:58
WidgetExpHome.itemKnowledge
UIItem itemKnowledge
Definition:
WidgetExpHome.cs:20
WidgetExpHome.goLv
GameObject goLv
Definition:
WidgetExpHome.cs:14
WidgetExpHome.itemExp
UIItem itemExp
Definition:
WidgetExpHome.cs:18
WidgetExpHome.textLv
UIText textLv
Definition:
WidgetExpHome.cs:16
WidgetExpHome.OnActivate
override void OnActivate()
Definition:
WidgetExpHome.cs:31
Widget
Definition:
Widget.cs:7
WindowChara.ToggleFeatMode
void ToggleFeatMode()
Definition:
WindowChara.cs:237
Elin
WidgetExpHome.cs
Generated by
1.9.6