Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ContentStatistics.cs
Go to the documentation of this file.
2{
3 public UIList list1;
4
5 public UIList list2;
6
7 public override void OnSwitchContent(int idTab)
8 {
10 list1.callbacks = new UIList.Callback<NumLog, ItemNumLog>
11 {
12 onInstantiate = delegate(NumLog a, ItemNumLog b)
13 {
14 b.SetLog(a);
15 }
16 };
17 list2.callbacks = new UIList.Callback<NumLog, ItemNumLog>
18 {
19 onInstantiate = delegate(NumLog a, ItemNumLog b)
20 {
21 b.SetLog(a);
22 }
23 };
24 foreach (NumLog item in nums.listCategory)
25 {
26 list1.Add(item);
27 }
28 foreach (NumLog item2 in nums.listImportant)
29 {
30 list2.Add(item2);
31 }
32 list1.Refresh();
33 list2.Refresh();
34 this.RebuildLayout(recursive: true);
35 }
36}
override void OnSwitchContent(int idTab)
Definition: EClass.cs:5
static Player player
Definition: EClass.cs:12
void SetLog(NumLog log)
Definition: ItemNumLog.cs:19
Definition: NumLog.cs:5
NumLogManager nums
Definition: Player.cs:820
Definition: UIList.cs:9
override void Add(object item)
Definition: UIList.cs:302
virtual void Refresh(bool highlightLast=false)
Definition: UIList.cs:424