1using System.Collections.Generic;
53 b.
toggle.SetActive(enable:
true);
54 b.toggle.isOn = track.Contains(cat.id);
55 b.
toggle.onValueChanged.AddListener(delegate(
bool isOn)
69 b.mainText.text = cat.GetText().ToTitleCase() +
" (" + sum +
")";
70 b.
SetFold(cat.children.Count > 0, folded:
true, delegate(
UIList l)
74 if (row.parent == cat)
85 if (!(row2.id ==
"new") && !(row2.id ==
"stash") && row2.parent ==
null)
102 bool check = track.Contains(a.
source.id);
107 if (!track.Contains(a.
source.id))
113 track.Remove(a.
source.id);
121 List<Thing> list =
new List<Thing>();
123 for (
int j = 0; j < list.Count; j++)
125 list[j].SetSortVal(m);
136 windows[0].textStats.SetText(
"statsTotal".lang(list.Count.ToString() ??
"", num.ToString() ??
"", num2.ToString() ??
""));
static SourceManager sources
void ShowThings(SourceCategory.Row cat)
UIList.SortMode sortResources
HashSet< string > trackedCategories
HashSet< string > trackedCards
List< Thing > ListThingsInCategory(SourceCategory.Row cat)
Dictionary< string, PropSetCategory > categoryMap
SourceCategory categories
override void Add(object o)
void Select(int index=0, bool invoke=false)
override void Add(object item)
virtual void Refresh(bool highlightLast=false)