CharacterSelectManager.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Runtime.CompilerServices;
  5. using PlayerStatus;
  6. using UnityEngine;
  7. using wf;
  8. public class CharacterSelectManager : MonoBehaviour
  9. {
  10. public static void DefaultMaidList(List<Maid> draw_list)
  11. {
  12. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  13. for (int i = 0; i < characterMgr.GetStockMaidCount(); i++)
  14. {
  15. draw_list.Add(characterMgr.GetStockMaid(i));
  16. }
  17. }
  18. public static int SortMaidStandardNoSchedule(Maid maid_a, Maid maid_b)
  19. {
  20. if (maid_a.status.leader && !maid_b.status.leader)
  21. {
  22. return -1;
  23. }
  24. if (!maid_a.status.leader && maid_b.status.leader)
  25. {
  26. return 1;
  27. }
  28. Status status = GameMain.Instance.CharacterMgr.status;
  29. if (maid_a.status.creationTimeNum < maid_b.status.creationTimeNum)
  30. {
  31. return -1;
  32. }
  33. if (maid_a.status.creationTimeNum != maid_b.status.creationTimeNum)
  34. {
  35. return 1;
  36. }
  37. return string.Compare(maid_b.status.guid, maid_a.status.guid);
  38. }
  39. public static int SortMaidStandard(Maid maid_a, Maid maid_b)
  40. {
  41. if (maid_a.status.leader && !maid_b.status.leader)
  42. {
  43. return -1;
  44. }
  45. if (!maid_a.status.leader && maid_b.status.leader)
  46. {
  47. return 1;
  48. }
  49. Status status = GameMain.Instance.CharacterMgr.status;
  50. int scheduleMaidSetting = status.GetScheduleMaidSetting(maid_a);
  51. int scheduleMaidSetting2 = status.GetScheduleMaidSetting(maid_b);
  52. if (scheduleMaidSetting != -1 && scheduleMaidSetting2 == -1)
  53. {
  54. return -1;
  55. }
  56. if (scheduleMaidSetting == -1 && scheduleMaidSetting2 != -1)
  57. {
  58. return 1;
  59. }
  60. if (scheduleMaidSetting < scheduleMaidSetting2)
  61. {
  62. return -1;
  63. }
  64. if (scheduleMaidSetting > scheduleMaidSetting2)
  65. {
  66. return 1;
  67. }
  68. if (maid_a.status.creationTimeNum < maid_b.status.creationTimeNum)
  69. {
  70. return -1;
  71. }
  72. if (maid_a.status.creationTimeNum != maid_b.status.creationTimeNum)
  73. {
  74. return 1;
  75. }
  76. return string.Compare(maid_b.status.guid, maid_a.status.guid);
  77. }
  78. public static int SortMaidStandard(Transform a, Transform b)
  79. {
  80. Maid maid = a.gameObject.GetComponent<MaidPlate>().maid;
  81. Maid maid2 = b.gameObject.GetComponent<MaidPlate>().maid;
  82. return CharacterSelectManager.SortMaidStandard(maid, maid2);
  83. }
  84. public static int SortMaidRanking(Maid maid_a, Maid maid_b)
  85. {
  86. if (maid_a.status.popularRank != 0 && maid_b.status.popularRank == 0)
  87. {
  88. return -1;
  89. }
  90. if (maid_a.status.popularRank == 0 && maid_b.status.popularRank != 0)
  91. {
  92. return 1;
  93. }
  94. if (maid_a.status.popularRank < maid_b.status.popularRank)
  95. {
  96. return -1;
  97. }
  98. if (maid_a.status.popularRank != maid_b.status.popularRank)
  99. {
  100. return 1;
  101. }
  102. return CharacterSelectManager.SortMaidStandard(maid_a, maid_b);
  103. }
  104. public static int SortMaidRanking(Transform a, Transform b)
  105. {
  106. Maid maid = a.gameObject.GetComponent<MaidPlate>().maid;
  107. Maid maid2 = b.gameObject.GetComponent<MaidPlate>().maid;
  108. return CharacterSelectManager.SortMaidRanking(maid, maid2);
  109. }
  110. public void Awake()
  111. {
  112. NDebug.AssertNull(this.MaidPlateParentGrid != null);
  113. this.switch_panel_ = this.MaidPlateParentGrid.gameObject.GetComponent<UIWFSwitchPanel>();
  114. this.tab_panel_ = this.MaidPlateParentGrid.gameObject.GetComponent<UIWFTabPanel>();
  115. this.scroll_view_ = UTY.GetChildObject(base.gameObject, "Contents", false).GetComponent<UIScrollView>();
  116. this.scroll_bar_ = UTY.GetChildObject(base.gameObject, "Scroll Bar", false).GetComponent<UIScrollBar>();
  117. Transform transform = base.gameObject.transform.Find("BigThumbnail");
  118. if (transform != null)
  119. {
  120. this.big_thumbnail_ = transform.gameObject.GetComponent<BigThumbnail>();
  121. }
  122. this.SetSortType(CharacterSelectManager.SortType.Normal);
  123. }
  124. public void Create(CharacterSelectManager.Type type, int slect_max = 3, bool select_no_draw = true)
  125. {
  126. this.thumbnail_load_ = true;
  127. this.select_no_draw_ = select_no_draw;
  128. Stopwatch stopwatch = new Stopwatch();
  129. stopwatch.Start();
  130. if (this.big_thumbnail_ != null)
  131. {
  132. this.big_thumbnail_.Visible = true;
  133. }
  134. this.type_ = type;
  135. if (this.callback_maid_list_ == null)
  136. {
  137. if (CharacterSelectManager.<>f__mg$cache0 == null)
  138. {
  139. CharacterSelectManager.<>f__mg$cache0 = new CharacterSelectManager.CallBackMaidList(CharacterSelectManager.DefaultMaidList);
  140. }
  141. this.callback_maid_list_ = CharacterSelectManager.<>f__mg$cache0;
  142. }
  143. Transform transform = this.MaidPlateParentGrid.transform;
  144. for (int i = 0; i < transform.childCount; i++)
  145. {
  146. UnityEngine.Object.Destroy(transform.GetChild(i).gameObject);
  147. }
  148. transform.DetachChildren();
  149. List<Maid> list = new List<Maid>();
  150. this.callback_maid_list_(list);
  151. this.maid_list_count_ = list.Count;
  152. this.select_list_ = null;
  153. for (int j = 0; j < list.Count; j++)
  154. {
  155. GameObject gameObject = Utility.CreatePrefab(this.MaidPlateParentGrid.gameObject, "CharacterSelect/Prefab/MaidPlateSimple", true);
  156. gameObject.GetComponent<MaidPlate>().SetMaidData(list[j]);
  157. UIWFSelectButton component = UTY.GetChildObject(gameObject, "Button", false).GetComponent<UIWFSelectButton>();
  158. UIWFTabButton component2 = UTY.GetChildObject(gameObject, "Button", false).GetComponent<UIWFTabButton>();
  159. if (type == CharacterSelectManager.Type.Select)
  160. {
  161. UnityEngine.Object.Destroy(component);
  162. component2.enabled = true;
  163. EventDelegate.Add(component2.onSelect, new EventDelegate.Callback(this.OnSelect));
  164. }
  165. else if (type == CharacterSelectManager.Type.Multiple)
  166. {
  167. UnityEngine.Object.Destroy(component2);
  168. component.enabled = true;
  169. EventDelegate.Add(component.onSelect, new EventDelegate.Callback(this.OnSelect));
  170. }
  171. else if (type == CharacterSelectManager.Type.Click)
  172. {
  173. UnityEngine.Object.Destroy(component);
  174. component2.enabled = true;
  175. EventDelegate.Add(component2.onClick, new EventDelegate.Callback(this.OnClick));
  176. }
  177. }
  178. if (type == CharacterSelectManager.Type.Select)
  179. {
  180. UnityEngine.Object.Destroy(this.switch_panel_);
  181. this.switch_panel_ = null;
  182. if (this.tab_panel_ == null)
  183. {
  184. this.tab_panel_ = this.MaidPlateParentGrid.gameObject.AddComponent<UIWFTabPanel>();
  185. }
  186. this.tab_panel_.enabled = true;
  187. this.tab_panel_.UpdateChildren();
  188. }
  189. else if (type == CharacterSelectManager.Type.Multiple)
  190. {
  191. UnityEngine.Object.Destroy(this.tab_panel_);
  192. this.tab_panel_ = null;
  193. if (this.switch_panel_ == null)
  194. {
  195. this.switch_panel_ = this.MaidPlateParentGrid.gameObject.AddComponent<UIWFSwitchPanel>();
  196. }
  197. this.switch_panel_.SetNumberOfSelected(slect_max);
  198. this.switch_panel_.enabled = true;
  199. this.select_list_ = new MaidPlate[slect_max];
  200. this.switch_panel_.UpdateChildren();
  201. }
  202. this.Reposition();
  203. this.scroll_view_.ResetPosition();
  204. if (this.type_ == CharacterSelectManager.Type.Select && this.MaidPlateParentGrid.GetChildList().Count != 0)
  205. {
  206. UIWFTabButton component3 = UTY.GetChildObject(this.MaidPlateParentGrid.GetChild(0).gameObject, "Button", false).GetComponent<UIWFTabButton>();
  207. this.tab_panel_.Select(component3);
  208. }
  209. stopwatch.Stop();
  210. }
  211. public void SetSortType(CharacterSelectManager.SortType type)
  212. {
  213. if (type == CharacterSelectManager.SortType.Normal)
  214. {
  215. UIGrid maidPlateParentGrid = this.MaidPlateParentGrid;
  216. if (CharacterSelectManager.<>f__mg$cache1 == null)
  217. {
  218. CharacterSelectManager.<>f__mg$cache1 = new Comparison<Transform>(CharacterSelectManager.SortMaidStandard);
  219. }
  220. maidPlateParentGrid.onCustomSort = CharacterSelectManager.<>f__mg$cache1;
  221. }
  222. else
  223. {
  224. UIGrid maidPlateParentGrid2 = this.MaidPlateParentGrid;
  225. if (CharacterSelectManager.<>f__mg$cache2 == null)
  226. {
  227. CharacterSelectManager.<>f__mg$cache2 = new Comparison<Transform>(CharacterSelectManager.SortMaidRanking);
  228. }
  229. maidPlateParentGrid2.onCustomSort = CharacterSelectManager.<>f__mg$cache2;
  230. }
  231. this.Reposition();
  232. }
  233. public void SelectMaid(Maid maid)
  234. {
  235. if (this.type_ != CharacterSelectManager.Type.Select || maid == null)
  236. {
  237. return;
  238. }
  239. List<Transform> childList = this.MaidPlateParentGrid.GetChildList();
  240. for (int i = 0; i < childList.Count; i++)
  241. {
  242. if (childList[i].gameObject.GetComponent<MaidPlate>().maid == maid)
  243. {
  244. UIWFTabButton component = UTY.GetChildObject(childList[i].gameObject, "Button", false).GetComponent<UIWFTabButton>();
  245. this.tab_panel_.Select(component);
  246. return;
  247. }
  248. }
  249. }
  250. public void SelectAllMaid()
  251. {
  252. if (this.type_ != CharacterSelectManager.Type.Multiple || this.select_list_ == null || this.select_no_draw_)
  253. {
  254. return;
  255. }
  256. this.thumbnail_load_ = false;
  257. CharacterSelectManager.CallBackOnMultiSelect callBackOnMultiSelect = this.callback_on_multi_select_;
  258. this.callback_on_multi_select_ = null;
  259. this.switch_panel_.SelectAll();
  260. this.callback_on_multi_select_ = callBackOnMultiSelect;
  261. if (this.callback_on_multi_select_ != null)
  262. {
  263. Maid[] array = new Maid[this.select_list_.Length];
  264. for (int i = 0; i < this.select_list_.Length; i++)
  265. {
  266. if (this.select_list_[i] != null)
  267. {
  268. array[i] = this.select_list_[i].maid;
  269. }
  270. }
  271. this.callback_on_multi_select_(array);
  272. }
  273. this.thumbnail_load_ = true;
  274. }
  275. public void SelectAllReleaseMaid()
  276. {
  277. if (this.type_ != CharacterSelectManager.Type.Multiple || this.select_list_ == null || this.select_no_draw_)
  278. {
  279. return;
  280. }
  281. this.thumbnail_load_ = false;
  282. CharacterSelectManager.CallBackOnMultiSelect callBackOnMultiSelect = this.callback_on_multi_select_;
  283. this.callback_on_multi_select_ = null;
  284. this.switch_panel_.SelectAllRelease();
  285. this.callback_on_multi_select_ = callBackOnMultiSelect;
  286. if (this.callback_on_multi_select_ != null)
  287. {
  288. Maid[] array = new Maid[this.select_list_.Length];
  289. for (int i = 0; i < this.select_list_.Length; i++)
  290. {
  291. if (this.select_list_[i] != null)
  292. {
  293. array[i] = this.select_list_[i].maid;
  294. }
  295. }
  296. this.callback_on_multi_select_(array);
  297. }
  298. this.thumbnail_load_ = true;
  299. }
  300. public void SetSelectStateMaid(Maid maid, bool isSelect)
  301. {
  302. Transform transform = this.MaidPlateParentGrid.transform;
  303. for (int i = 0; i < transform.childCount; i++)
  304. {
  305. MaidPlate component = transform.GetChild(i).GetComponent<MaidPlate>();
  306. if (component.maid == maid)
  307. {
  308. UIWFSelectButton component2 = UTY.GetChildObject(component.gameObject, "Button", false).GetComponent<UIWFSelectButton>();
  309. if (component2.isSelected != isSelect)
  310. {
  311. this.switch_panel_.Select(component2);
  312. }
  313. return;
  314. }
  315. }
  316. }
  317. public void UpdateMaidPlate(Maid maid)
  318. {
  319. Transform transform = this.MaidPlateParentGrid.transform;
  320. for (int i = 0; i < transform.childCount; i++)
  321. {
  322. MaidPlate component = transform.GetChild(i).GetComponent<MaidPlate>();
  323. if (component.maid == maid)
  324. {
  325. component.SetMaidData(maid);
  326. return;
  327. }
  328. }
  329. transform = this.NoDrawArea.transform;
  330. for (int j = 0; j < transform.childCount; j++)
  331. {
  332. MaidPlate component2 = transform.GetChild(j).GetComponent<MaidPlate>();
  333. if (component2.maid == maid)
  334. {
  335. component2.SetMaidData(maid);
  336. return;
  337. }
  338. }
  339. }
  340. public void RemoveMaidPlate(Maid maid)
  341. {
  342. List<Transform> childList = this.MaidPlateParentGrid.GetChildList();
  343. MaidPlate maidPlate = null;
  344. MaidPlate maidPlate2 = null;
  345. bool flag = false;
  346. for (int i = 0; i < childList.Count; i++)
  347. {
  348. maidPlate = childList[i].gameObject.GetComponent<MaidPlate>();
  349. if (maidPlate.maid == maid)
  350. {
  351. if (i + 1 < childList.Count)
  352. {
  353. maidPlate2 = childList[i + 1].gameObject.GetComponent<MaidPlate>();
  354. }
  355. flag = true;
  356. break;
  357. }
  358. maidPlate2 = maidPlate;
  359. }
  360. if (!flag)
  361. {
  362. NDebug.Assert("error.", false);
  363. return;
  364. }
  365. if (this.type_ == CharacterSelectManager.Type.Select && maidPlate2 != null && maidPlate2.maid != maid)
  366. {
  367. UIWFTabButton component = UTY.GetChildObject(maidPlate2.gameObject, "Button", false).GetComponent<UIWFTabButton>();
  368. this.tab_panel_.Select(component);
  369. }
  370. this.MoveNoDrawArea(maid);
  371. maidPlate.SetMaidData(null);
  372. this.Reposition();
  373. }
  374. public bool MoveNoDrawArea(Maid maid)
  375. {
  376. MaidPlate maidPlate = null;
  377. Transform transform = this.MaidPlateParentGrid.transform;
  378. for (int i = 0; i < transform.childCount; i++)
  379. {
  380. MaidPlate component = transform.GetChild(i).GetComponent<MaidPlate>();
  381. if (component.maid == maid)
  382. {
  383. maidPlate = component;
  384. break;
  385. }
  386. }
  387. if (maidPlate == null)
  388. {
  389. return false;
  390. }
  391. maidPlate.gameObject.transform.SetParent(this.NoDrawArea.transform, false);
  392. this.Reposition();
  393. return true;
  394. }
  395. public bool MoveGridArea(Maid maid)
  396. {
  397. MaidPlate maidPlate = null;
  398. Transform transform = this.NoDrawArea.transform;
  399. for (int i = 0; i < transform.childCount; i++)
  400. {
  401. MaidPlate component = transform.GetChild(i).GetComponent<MaidPlate>();
  402. if (component.maid == maid)
  403. {
  404. maidPlate = component;
  405. break;
  406. }
  407. }
  408. if (maidPlate == null)
  409. {
  410. return false;
  411. }
  412. maidPlate.gameObject.transform.SetParent(this.MaidPlateParentGrid.transform, false);
  413. this.Reposition();
  414. return true;
  415. }
  416. public void SetRightVisible(bool is_visible)
  417. {
  418. Transform transform = this.MaidPlateParentGrid.transform;
  419. UISprite component = UTY.GetChildObject(base.gameObject, "BG", false).GetComponent<UISprite>();
  420. Transform transform2 = UTY.GetChildObject(base.gameObject, "Scroll Bar", false).transform;
  421. UIWidget component2 = UTY.GetChildObject(base.gameObject, "DragMat", false).GetComponent<UIWidget>();
  422. this.right_visible_ = is_visible;
  423. if (is_visible)
  424. {
  425. for (int i = 0; i < transform.childCount; i++)
  426. {
  427. MaidPlate component3 = transform.GetChild(i).gameObject.GetComponent<MaidPlate>();
  428. component3.SetRightPlateVisible(true);
  429. }
  430. component.transform.localPosition = new Vector3(145f, 0f, 0f);
  431. component.width = 792;
  432. transform2.localPosition = new Vector3(354f, 0f, 0f);
  433. component2.transform.localPosition = new Vector3(140f, 0f, 0f);
  434. component2.width = 784;
  435. component2.ResizeCollider();
  436. }
  437. else
  438. {
  439. for (int j = 0; j < transform.childCount; j++)
  440. {
  441. MaidPlate component4 = transform.GetChild(j).gameObject.GetComponent<MaidPlate>();
  442. component4.SetRightPlateVisible(false);
  443. }
  444. component.transform.localPosition = Vector3.zero;
  445. component.width = 502;
  446. transform2.localPosition = new Vector3(64f, 0f, 0f);
  447. component2.transform.localPosition = new Vector3(-5f, 0f, 0f);
  448. component2.width = 492;
  449. component2.ResizeCollider();
  450. }
  451. }
  452. public void SetCallBackMaidList(CharacterSelectManager.CallBackMaidList callback)
  453. {
  454. this.callback_maid_list_ = callback;
  455. }
  456. public void SetCallBackOnClick(CharacterSelectManager.CallBackOnClick callback)
  457. {
  458. this.callback_on_click_ = callback;
  459. }
  460. public void SetCallBackOnMultiSelect(CharacterSelectManager.CallBackOnMultiSelect callback)
  461. {
  462. this.callback_on_multi_select_ = callback;
  463. }
  464. public void SetCallBackCallBackOnSelect(CharacterSelectManager.CallBackOnSelect callback)
  465. {
  466. this.callback_on_select_ = callback;
  467. }
  468. public void Reposition()
  469. {
  470. this.MaidPlateParentGrid.Reposition();
  471. this.scroll_view_.UpdatePosition();
  472. }
  473. public bool IsRightVisible()
  474. {
  475. return this.right_visible_;
  476. }
  477. public UIScrollView scroll_view
  478. {
  479. get
  480. {
  481. return this.scroll_view_;
  482. }
  483. }
  484. public UIScrollBar scroll_bar
  485. {
  486. get
  487. {
  488. return this.scroll_bar_;
  489. }
  490. }
  491. public BigThumbnail big_thumbnail
  492. {
  493. get
  494. {
  495. return this.big_thumbnail_;
  496. }
  497. }
  498. public int maid_list_count
  499. {
  500. get
  501. {
  502. return this.maid_list_count_;
  503. }
  504. }
  505. private void OnSelect()
  506. {
  507. GameObject gameObject = UIButton.current.transform.parent.gameObject;
  508. MaidPlate component = gameObject.GetComponent<MaidPlate>();
  509. bool selected = UIWFSelectButton.selected;
  510. if (this.type_ == CharacterSelectManager.Type.Select)
  511. {
  512. if (selected && this.callback_on_select_ != null)
  513. {
  514. if (this.big_thumbnail_ != null && this.thumbnail_load_)
  515. {
  516. this.big_thumbnail_.SetMaid(component.maid);
  517. }
  518. this.callback_on_select_(component.maid);
  519. }
  520. }
  521. else if (this.type_ == CharacterSelectManager.Type.Multiple)
  522. {
  523. if (selected)
  524. {
  525. for (int i = 0; i < this.select_list_.Length; i++)
  526. {
  527. if (this.select_list_[i] == null)
  528. {
  529. if (this.big_thumbnail_ != null && this.thumbnail_load_)
  530. {
  531. this.big_thumbnail_.SetMaid(component.maid);
  532. }
  533. this.select_list_[i] = component;
  534. if (this.select_no_draw_)
  535. {
  536. this.select_list_[i].SetSelectNoVisible(i + 1, true);
  537. }
  538. break;
  539. }
  540. }
  541. }
  542. else
  543. {
  544. for (int j = 0; j < this.select_list_.Length; j++)
  545. {
  546. if (this.select_list_[j] == component)
  547. {
  548. if (this.big_thumbnail_ != null && this.thumbnail_load_)
  549. {
  550. this.big_thumbnail_.SetMaid(component.maid);
  551. }
  552. if (this.select_no_draw_)
  553. {
  554. this.select_list_[j].SetSelectNoVisible(j + 1, false);
  555. }
  556. this.select_list_[j] = null;
  557. break;
  558. }
  559. }
  560. }
  561. if (this.callback_on_multi_select_ != null)
  562. {
  563. Maid[] array = new Maid[this.select_list_.Length];
  564. for (int k = 0; k < this.select_list_.Length; k++)
  565. {
  566. if (this.select_list_[k] != null)
  567. {
  568. array[k] = this.select_list_[k].maid;
  569. }
  570. }
  571. this.callback_on_multi_select_(array);
  572. }
  573. }
  574. }
  575. private void OnClick()
  576. {
  577. MaidPlate component = UIButton.current.transform.parent.GetComponent<MaidPlate>();
  578. if (this.callback_on_click_ != null)
  579. {
  580. this.callback_on_click_(component.maid);
  581. }
  582. }
  583. public int select_max
  584. {
  585. get
  586. {
  587. return (this.select_list_ != null) ? this.select_list_.Length : 0;
  588. }
  589. }
  590. public UIGrid MaidPlateParentGrid;
  591. public GameObject NoDrawArea;
  592. private CharacterSelectManager.CallBackMaidList callback_maid_list_;
  593. private CharacterSelectManager.CallBackOnClick callback_on_click_;
  594. private CharacterSelectManager.CallBackOnMultiSelect callback_on_multi_select_;
  595. private CharacterSelectManager.CallBackOnSelect callback_on_select_;
  596. private BigThumbnail big_thumbnail_;
  597. private UIScrollView scroll_view_;
  598. private UIScrollBar scroll_bar_;
  599. private UIWFSwitchPanel switch_panel_;
  600. private UIWFTabPanel tab_panel_;
  601. private CharacterSelectManager.Type type_;
  602. private MaidPlate[] select_list_;
  603. private bool right_visible_;
  604. private bool select_no_draw_;
  605. private int maid_list_count_;
  606. private bool thumbnail_load_;
  607. [CompilerGenerated]
  608. private static CharacterSelectManager.CallBackMaidList <>f__mg$cache0;
  609. [CompilerGenerated]
  610. private static Comparison<Transform> <>f__mg$cache1;
  611. [CompilerGenerated]
  612. private static Comparison<Transform> <>f__mg$cache2;
  613. public enum Type
  614. {
  615. Click,
  616. Select,
  617. Multiple
  618. }
  619. public enum SortType
  620. {
  621. Normal,
  622. Ranking
  623. }
  624. public delegate void CallBackMaidList(List<Maid> draw_list);
  625. public delegate void CallBackOnClick(Maid select_maid);
  626. public delegate void CallBackOnSelect(Maid select_maid);
  627. public delegate void CallBackOnMultiSelect(Maid[] select_maid);
  628. }