11 public UIDynamicList list
15 return this.sequence.manager.listCredit;
20 public override bool Play()
22 if (this.progress == 0)
24 this.sequence.manager.endroll.SetActive(
true);
30 this.timer += Time.deltaTime;
31 if (this.timer < 0.08f)
35 if (Input.GetKeyDown(KeyCode.Escape))
39 if (this.list.dsv.contentAnchoredPosition <= -
this.list.dsv.contentSize +
this.list.dsv.viewportSize + 1f)
41 if ((!EInput.rightMouse.pressedLong || !Application.isEditor) && EInput.IsAnyKeyDown(
true))
49 if (EInput.leftMouse.pressing)
53 if (EInput.rightMouse.pressing)
55 num = (Application.isEditor ? 200f : 30f);
57 this.list.dsv.contentAnchoredPosition += Time.deltaTime * this.sequence.manager.creditSpeed * num;
66 ExcelData excelData =
new ExcelData(
"Data/Raw/credit", 1);
67 List<Dictionary<string, string>> items = excelData.BuildList(
"_default");
70 BaseList list = this.list;
71 UIList.Callback<string, UIItem> callback =
new UIList.Callback<string, UIItem>();
72 callback.onRedraw = delegate(
string a, UIItem b,
int i)
76 callback.onList = delegate(UIList.SortMode m)
78 List<string> list2 = IO.LoadTextArray(CorePath.CorePackage.TextCommon +
"endroll").ToList<
string>();
79 for (
int i = 0; i < Screen.height / 32 + 1; i++)
81 base.<Init>g__Space|0(
true);
83 foreach (
string text
in list2)
85 if (text.StartsWith(
"#"))
87 string[] array = text.Replace(
"#",
"").Split(
',', StringSplitOptions.None);
88 string text2 = array[0];
89 int num = array[1].ToInt();
90 using (List<Dictionary<string, string>>.Enumerator enumerator2 = items.GetEnumerator())
92 while (enumerator2.MoveNext())
94 Dictionary<string, string> dictionary = enumerator2.Current;
98 for (
int j = 0; j < num; j++)
105 if ((text2 ==
"Abandon" && dictionary[
"abandon"] ==
"Yes") || dictionary[
"Pledge"] == text2)
107 base.<Init>g__AddBacker|1(dictionary[
"Name"]);
109 if (index % 5 >= 5 - num)
111 for (
int k = 0; k < num; k++)
122 base.<Init>g__Add|2(text);
124 for (
int l = 0; l < Screen.height / 32 / 2 - 1; l++)
126 base.<Init>g__Space|0(
true);
129 list.callbacks = callback;