7 private void OnEnable()
11 this.needRefresh =
false;
17 public void SetContainer(
Card t, Window.SaveData d)
21 this.needRefresh =
true;
22 this.SetActive(
false);
29 CS$<>8__locals1.<>4__this =
this;
30 CS$<>8__locals1.cats = this.data.cats;
31 BaseList baseList = this.list;
35 if (a.children.Count > 0)
37 b.buttonFold.onClick.Invoke();
43 b.mainText.text = a.GetName().ToTitleCase(
false);
45 foreach (
int uid
in CS$<>8__locals1.cats)
53 b.SetFold(a.children.Count > 0, !flag, delegate(UIList l)
60 b.buttonToggle.icon.SetActive(CS$<>8__locals1.cats.Contains(a.uid));
61 b.buttonToggle.SetOnClick(delegate
63 bool flag2 = !CS$<>8__locals1.cats.Contains(a.uid);
64 b.buttonToggle.icon.SetActive(flag2);
67 CS$<>8__locals1.cats.Add(a.uid);
71 CS$<>8__locals1.cats.Remove(a.uid);
73 CS$<>8__locals1.<Refresh>g__SetAll|0(a.uid, flag2);
77 callback.onRefresh =
null;
78 baseList.callbacks = callback;
81 if (row.parent ==
null && row.id !=
"new" && row.id !=
"none")
86 this.list.Refresh(
false);
90 public Card container;
96 public Window.SaveData data;
99 public bool needRefresh;