Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
ContentChronicle.cs
Go to the documentation of this file.
1
public
class
ContentChronicle
:
EContent
2
{
3
public
UIList
list
;
4
5
public
override
void
OnSwitchContent
(
int
idTab)
6
{
7
list.callbacks =
new
UIList
.
Callback
<
MsgLog
.
Data
,
UIItem
>
8
{
9
onInstantiate = delegate(
MsgLog
.
Data
a,
UIItem
b)
10
{
11
b.text1.text = a.text;
12
if
(!a.col.IsEmpty())
13
{
14
b.
text1
.
SetColor
(a.col.ToEnum<
FontColor
>());
15
}
16
}
17
};
18
list
.
Clear
();
19
foreach
(
MsgLog
.
Data
item
in
EClass
.
game
.
log
.
GetList
())
20
{
21
list
.
Add
(
item
);
22
}
23
list
.
Refresh
();
24
this.RebuildLayout(recursive:
true
);
25
}
26
}
ContainerFlag.item
@ item
FontColor
FontColor
Definition:
FontColor.cs:2
ContentChronicle
Definition:
ContentChronicle.cs:2
ContentChronicle.list
UIList list
Definition:
ContentChronicle.cs:3
ContentChronicle.OnSwitchContent
override void OnSwitchContent(int idTab)
Definition:
ContentChronicle.cs:5
EClass
Definition:
EClass.cs:5
EClass.game
static Game game
Definition:
EClass.cs:8
EContent
Definition:
EContent.cs:2
Game.log
MsgLog log
Definition:
Game.cs:185
MsgLog.Data
Definition:
MsgLog.cs:9
MsgLog
Definition:
MsgLog.cs:7
MsgLog.GetList
List< Data > GetList(bool reverse=false)
Definition:
MsgLog.cs:80
UIItem
Definition:
UIItem.cs:5
UIItem.text1
UIText text1
Definition:
UIItem.cs:6
UIList.Callback
Definition:
UIList.cs:53
UIList
Definition:
UIList.cs:9
UIList.Clear
override void Clear()
Definition:
UIList.cs:349
UIList.Add
override void Add(object item)
Definition:
UIList.cs:302
UIList.Refresh
virtual void Refresh(bool highlightLast=false)
Definition:
UIList.cs:424
UIText.SetColor
void SetColor(FontColor c)
Definition:
UIText.cs:234
Elin
ContentChronicle.cs
Generated by
1.9.6