55 {
57 List<Dictionary<string, string>> items = excelData.
BuildList();
58 int index = 0;
61 {
62 onRedraw = delegate(
string a,
UIItem b,
int i)
63 {
65 },
66 onList = delegate
67 {
69 for (int k = 0; k < Screen.height / 32 + 1; k++)
70 {
71 Space(newline: true);
72 }
74 {
75 if (
item.StartsWith(
"#"))
76 {
77 string[] array =
item.Replace(
"#",
"").Split(
',');
78 string text = array[0];
79 int num2 = array[1].ToInt();
80 foreach (Dictionary<string, string> item2 in items)
81 {
82 if (index % 5 < num2)
83 {
84 for (int l = 0; l < num2; l++)
85 {
86 this.list.Add("");
87 index++;
88 }
89 }
90 if ((text == "Abandon" && item2["abandon"] == "Yes") || item2["Pledge"] == text)
91 {
92 AddBacker(item2["Name"]);
93 }
94 if (index % 5 >= 5 - num2)
95 {
96 for (int n = 0; n < num2; n++)
97 {
98 this.list.Add("");
99 index++;
100 }
101 }
102 }
103 }
104 else
105 {
107 }
108 }
109 for (int num3 = 0; num3 < Screen.height / 32 / 2 - 1; num3++)
110 {
111 Space(newline: true);
112 }
113 }
114 };
117 {
118 Space(newline: false);
124 index += 5;
125 }
126 void AddBacker(string s)
127 {
129 index++;
130 }
131 void Space(bool newline)
132 {
133 int num = (newline ? 5 : 0);
134 if (index % 5 != 0)
135 {
136 num += 5 - index % 5;
137 }
138 for (int j = 0; j < num; j++)
139 {
141 index++;
142 }
143 }
144 }
static string ConvertName(string s)
List< Dictionary< string, string > > BuildList(string sheetName="_default")
static string[] LoadTextArray(string _path)
override void Add(object o)