Elin Modding Docs Doc
Loading...
Searching...
No Matches
LayerDistribution.cs
1using System;
2
3// Token: 0x02000539 RID: 1337
5{
6 // Token: 0x0600243A RID: 9274 RVA: 0x000CC294 File Offset: 0x000CA494
7 public void SetContainer(Card t, Window.SaveData d)
8 {
9 this.container = t;
10 this.data = d;
11 BaseList baseList = this.list;
12 UIList.Callback<SourceCategory.Row, ButtonCategory> callback = new UIList.Callback<SourceCategory.Row, ButtonCategory>();
13 callback.onClick = delegate(SourceCategory.Row a, ButtonCategory b)
14 {
15 if (a.children.Count > 0)
16 {
17 b.buttonFold.onClick.Invoke();
18 }
19 };
20 callback.onInstantiate = delegate(SourceCategory.Row a, ButtonCategory b)
21 {
22 b.mainText.text = a.GetName().ToTitleCase(false);
23 b.SetFold(a.children.Count > 0, a.parent == null, delegate(UIList l)
24 {
25 foreach (SourceCategory.Row o in a.children)
26 {
27 l.Add(o);
28 }
29 });
30 };
31 callback.onRefresh = null;
32 baseList.callbacks = callback;
33 foreach (SourceCategory.Row row in ELayer.sources.categories.rows)
34 {
35 if (row.parent == null && row.id != "new" && row.id != "none")
36 {
37 this.list.Add(row);
38 }
39 }
40 this.list.Refresh(false);
41 }
42
43 // Token: 0x0400139E RID: 5022
44 public Card container;
45
46 // Token: 0x0400139F RID: 5023
47 public UIList list;
48
49 // Token: 0x040013A0 RID: 5024
50 public Window.SaveData data;
51}
Definition Card.cs:13