Elin Modding Docs Doc
All Classes Namespaces
ContentChronicle.cs
1using System;
2
3// Token: 0x02000580 RID: 1408
5{
6 // Token: 0x060026C8 RID: 9928 RVA: 0x000DBF98 File Offset: 0x000DA198
7 public override void OnSwitchContent(int idTab)
8 {
9 BaseList baseList = this.list;
10 UIList.Callback<MsgLog.Data, UIItem> callback = new UIList.Callback<MsgLog.Data, UIItem>();
11 callback.onInstantiate = delegate(MsgLog.Data a, UIItem b)
12 {
13 b.text1.text = a.text;
14 if (!a.col.IsEmpty())
15 {
16 b.text1.SetColor(a.col.ToEnum(true));
17 }
18 };
19 baseList.callbacks = callback;
20 this.list.Clear();
21 foreach (MsgLog.Data o in EClass.game.log.GetList(false))
22 {
23 this.list.Add(o);
24 }
25 this.list.Refresh(false);
26 this.RebuildLayout(true);
27 }
28
29 // Token: 0x04001563 RID: 5475
30 public UIList list;
31}