Elin Modding Docs Doc
Loading...
Searching...
No Matches
ItemNumLog.cs
1using System;
2using System.Collections.Generic;
3using UnityEngine.UI;
4
5// Token: 0x02000596 RID: 1430
6public class ItemNumLog : EMono
7{
8 // Token: 0x0600273B RID: 10043 RVA: 0x000DE3D8 File Offset: 0x000DC5D8
9 public void SetLog(NumLog log)
10 {
11 this.textTitle.text = log.Name;
12 this.textCurrent.text = (log.Value.ToString() ?? "");
13 this.textLastDay.text = (log.lastDay.ToString() ?? "");
14 this.textLastMonth.text = (log.lastMonth.ToString() ?? "");
15 this.textLastYear.text = (log.lastYear.ToString() ?? "");
16 if (this.layout)
17 {
18 UIItem mold = this.layout.CreateMold(null);
19 List<Gross.Mod> mods = log.gross.GetMods();
20 Action<string> action = delegate(string a)
21 {
22 Util.Instantiate<UIItem>(mold, this.layout).text1.text = a;
23 };
24 if (mods.Count == 0)
25 {
26 action(Lang.Get("noMod"));
27 return;
28 }
29 foreach (Gross.Mod mod in mods)
30 {
31 action("");
32 }
33 }
34 }
35
36 // Token: 0x040015B5 RID: 5557
37 public UIText textTitle;
38
39 // Token: 0x040015B6 RID: 5558
40 public UIText textCurrent;
41
42 // Token: 0x040015B7 RID: 5559
43 public UIText textLastDay;
44
45 // Token: 0x040015B8 RID: 5560
46 public UIText textLastMonth;
47
48 // Token: 0x040015B9 RID: 5561
49 public UIText textLastYear;
50
51 // Token: 0x040015BA RID: 5562
52 public LayoutGroup layout;
53}
Definition EMono.cs:6
Definition Gross.cs:7