Elin Modding Docs Doc
Loading...
Searching...
No Matches
ContentTop.cs
1using System;
2
3// Token: 0x02000594 RID: 1428
4public class ContentTop : EContent
5{
6 // Token: 0x06002737 RID: 10039 RVA: 0x000DE278 File Offset: 0x000DC478
7 public override void OnSwitchContent(int idTab)
8 {
9 this.textHomeName.text = Lang.Parse("journalTitle", EClass.Home.name, null, null, null, null);
10 EClass.player.notices.Refresh();
11 BaseList baseList = this.list2;
12 UIList.Callback<Schedule.Item, UIItem> callback = new UIList.Callback<Schedule.Item, UIItem>();
13 callback.onInstantiate = delegate(Schedule.Item a, UIItem b)
14 {
15 b.text1.text = a.Name;
16 b.text2.text = ((a.date == null) ? "????" : a.date.GetText(Date.TextFormat.Schedule));
17 };
18 baseList.callbacks = callback;
19 this.list2.Clear();
20 foreach (Schedule.Item o in EClass.world.schedule.list)
21 {
22 this.list2.Add(o);
23 }
24 this.list2.Refresh(false);
25 }
26
27 // Token: 0x040015B1 RID: 5553
28 public UIText textHomeName;
29
30 // Token: 0x040015B2 RID: 5554
31 public UIList list1;
32
33 // Token: 0x040015B3 RID: 5555
34 public UIList list2;
35}
Definition Date.cs:6