Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
WidgetExp.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
WidgetExp
:
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
WidgetExp.Extra
Definition:
WidgetExp.cs:6
WidgetExp.Extra.influence
bool influence
Definition:
WidgetExp.cs:11
WidgetExp.Extra.lv
bool lv
Definition:
WidgetExp.cs:7
WidgetExp.Extra.knowledge
bool knowledge
Definition:
WidgetExp.cs:9
WidgetExp
Definition:
WidgetExp.cs:4
WidgetExp.Refresh
void Refresh()
Definition:
WidgetExp.cs:58
WidgetExp.itemExp
UIItem itemExp
Definition:
WidgetExp.cs:18
WidgetExp.Build
void Build()
Definition:
WidgetExp.cs:37
WidgetExp.OnActivate
override void OnActivate()
Definition:
WidgetExp.cs:31
WidgetExp.goLv
GameObject goLv
Definition:
WidgetExp.cs:14
WidgetExp.itemInfluence
UIItem itemInfluence
Definition:
WidgetExp.cs:22
WidgetExp.CreateExtra
override object CreateExtra()
Definition:
WidgetExp.cs:26
WidgetExp.textLv
UIText textLv
Definition:
WidgetExp.cs:16
WidgetExp.OnClick
void OnClick()
Definition:
WidgetExp.cs:43
WidgetExp.extra
Extra extra
Definition:
WidgetExp.cs:24
WidgetExp.itemKnowledge
UIItem itemKnowledge
Definition:
WidgetExp.cs:20
Widget
Definition:
Widget.cs:7
WindowChara.ToggleFeatMode
void ToggleFeatMode()
Definition:
WindowChara.cs:237
Elin
WidgetExp.cs
Generated by
1.9.6