DanceSelect.cs 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using MaidStatus;
  6. using UnityEngine;
  7. using wf;
  8. public class DanceSelect : WfScreenChildren
  9. {
  10. public static void CreateDanceData()
  11. {
  12. if (DanceSelect.dance_data_list_ != null)
  13. {
  14. return;
  15. }
  16. HashSet<int> enabled_id_list = new HashSet<int>();
  17. Action<string> action = delegate(string file_name)
  18. {
  19. file_name += ".nei";
  20. if (!GameUty.FileSystem.IsExistentFile(file_name))
  21. {
  22. return;
  23. }
  24. using (AFileBase afileBase2 = GameUty.FileSystem.FileOpen(file_name))
  25. {
  26. using (CsvParser csvParser2 = new CsvParser())
  27. {
  28. bool condition2 = csvParser2.Open(afileBase2);
  29. NDebug.Assert(condition2, file_name + "\nopen failed.");
  30. for (int m = 1; m < csvParser2.max_cell_y; m++)
  31. {
  32. if (csvParser2.IsCellToExistData(0, m))
  33. {
  34. int cellAsInteger2 = csvParser2.GetCellAsInteger(0, m);
  35. if (!enabled_id_list.Contains(cellAsInteger2))
  36. {
  37. enabled_id_list.Add(cellAsInteger2);
  38. }
  39. }
  40. }
  41. }
  42. }
  43. };
  44. action("dance_enabled_list");
  45. for (int i = 0; i < GameUty.PathList.Count; i++)
  46. {
  47. action("dance_enabled_list_" + GameUty.PathList[i]);
  48. }
  49. DanceSelect.dance_data_list_ = new List<DanceData>();
  50. using (AFileBase afileBase = GameUty.FileSystem.FileOpen("dance_setting.nei"))
  51. {
  52. using (CsvParser csvParser = new CsvParser())
  53. {
  54. bool condition = csvParser.Open(afileBase);
  55. NDebug.Assert(condition, "file open error[dance_setting.nei]");
  56. for (int j = 1; j < csvParser.max_cell_y; j++)
  57. {
  58. if (csvParser.IsCellToExistData(0, j))
  59. {
  60. int num = 0;
  61. int cellAsInteger = csvParser.GetCellAsInteger(num++, j);
  62. if (enabled_id_list.Contains(cellAsInteger))
  63. {
  64. DanceData danceData = new DanceData();
  65. danceData.ID = cellAsInteger;
  66. danceData.title = csvParser.GetCellAsString(num++, j);
  67. danceData.title = danceData.title.Replace("《改行》", "\n");
  68. danceData.title_font_size = csvParser.GetCellAsInteger(num++, j);
  69. danceData.title_offset_y = csvParser.GetCellAsInteger(num++, j);
  70. danceData.select_chara_num = csvParser.GetCellAsInteger(num++, j);
  71. danceData.scene_name = csvParser.GetCellAsString(num++, j);
  72. danceData.commentary_text = csvParser.GetCellAsString(num++, j);
  73. danceData.commentary_text = danceData.commentary_text.Replace("《改行》", "\n");
  74. danceData.sample_image_name = csvParser.GetCellAsString(num++, j);
  75. danceData.bgm_file_name = csvParser.GetCellAsString(num++, j);
  76. danceData.preset_name = new List<string>();
  77. for (int k = 0; k < danceData.select_chara_num; k++)
  78. {
  79. danceData.preset_name.Add(string.Empty);
  80. }
  81. string cellAsString = csvParser.GetCellAsString(num++, j);
  82. if (!string.IsNullOrEmpty(cellAsString))
  83. {
  84. string[] array = cellAsString.Split(new char[]
  85. {
  86. ','
  87. });
  88. NDebug.Assert(array.Length <= danceData.preset_name.Count, "ダンス[" + danceData.title + "]のプリセット人数設定が\n多すぎます");
  89. int num2 = 0;
  90. while (num2 < danceData.preset_name.Count && num2 < array.Length)
  91. {
  92. danceData.preset_name[num2] = array[num2].Trim();
  93. num2++;
  94. }
  95. }
  96. string cellAsString2 = csvParser.GetCellAsString(num++, j);
  97. if (!string.IsNullOrEmpty(cellAsString2))
  98. {
  99. danceData.scenario_progress = int.Parse(cellAsString2);
  100. }
  101. string cellAsString3 = csvParser.GetCellAsString(num++, j);
  102. if (!string.IsNullOrEmpty(cellAsString3))
  103. {
  104. danceData.Term = (DanceData.DanceTerm)Enum.Parse(typeof(DanceData.DanceTerm), cellAsString3);
  105. }
  106. danceData.AppealCutinName = csvParser.GetCellAsString(num++, j);
  107. danceData.ReversalCutinName = csvParser.GetCellAsString(num++, j);
  108. danceData.danceshow_scene = csvParser.GetCellAsString(num++, j);
  109. danceData.danceshow_image = csvParser.GetCellAsString(num++, j);
  110. string cellAsString4 = csvParser.GetCellAsString(num++, j);
  111. if (!string.IsNullOrEmpty(cellAsString4))
  112. {
  113. foreach (string text in cellAsString4.Split(new char[]
  114. {
  115. ','
  116. }))
  117. {
  118. string s = text.Split(new char[]
  119. {
  120. '='
  121. })[1].Split(new char[]
  122. {
  123. '_'
  124. })[1];
  125. danceData.maid_order.Add(int.Parse(s) - 1);
  126. }
  127. }
  128. danceData.bgType = ((!(csvParser.GetCellAsString(num++, j) == "ライブステージ")) ? DanceData.BgType.Theater : DanceData.BgType.LiveStage);
  129. danceData.InitialPlayable = csvParser.IsCellToExistData(num++, j);
  130. danceData.IsPlayable = danceData.InitialPlayable;
  131. DanceSelect.dance_data_list_.Add(danceData);
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. public override void Awake()
  139. {
  140. DanceSelect.CreateDanceData();
  141. base.Awake();
  142. if (GameMain.Instance.ScriptMgr.adv_kag.tag_backup.ContainsKey("only_release"))
  143. {
  144. this.m_ExistOnlyRelease = true;
  145. this.m_OnlyRelease = int.Parse(GameMain.Instance.ScriptMgr.adv_kag.tag_backup["only_release"]);
  146. DanceSelect.m_SelectedDance.Clear();
  147. }
  148. this.m_ForceTheater = GameMain.Instance.ScriptMgr.adv_kag.tag_backup.ContainsKey("force_theater");
  149. this.m_ReleaseButton.gameObject.SetActive(false);
  150. EventDelegate.Add(this.OkButton.onClick, new EventDelegate.Callback(this.OnClickOkButton));
  151. EventDelegate.Add(this.CancelButton.onClick, new EventDelegate.Callback(this.OnClickCancelButton));
  152. GameObject gameObject = this.OkButton.transform.parent.gameObject;
  153. this.m_MainButtonPanel = gameObject.GetComponent<UIPanel>();
  154. EventDelegate.Add(this.m_SubOkButton.onClick, new EventDelegate.Callback(this.OnClickOkButton));
  155. EventDelegate.Add(this.m_SubCancelButton.onClick, new EventDelegate.Callback(this.OnClickCancelButton));
  156. GameObject gameObject2 = this.m_SubOkButton.transform.parent.gameObject;
  157. EventDelegate.Add(this.m_BackButton.onClick, new EventDelegate.Callback(this.OnClickCancelButton));
  158. EventDelegate.Add(this.m_ReleaseButton.onClick, new EventDelegate.Callback(this.SwitchAllRelease));
  159. this.m_DanceShowPanel.SetActive(false);
  160. this.m_DanceModePanel.gameObject.SetActive(false);
  161. switch (RhythmAction_Mgr.NowDance)
  162. {
  163. case RhythmAction_Mgr.DanceType.Free:
  164. case RhythmAction_Mgr.DanceType.View:
  165. case RhythmAction_Mgr.DanceType.Touch:
  166. case RhythmAction_Mgr.DanceType.VrDance:
  167. {
  168. gameObject2.SetActive(false);
  169. this.m_DanceModePanel.gameObject.SetActive(true);
  170. this.m_MainButtonPanel.alpha = 0f;
  171. Transform transform = this.m_DanceModePanel.transform.Find("ButtonGroup");
  172. bool flag = GameMain.Instance.VRMode && !GameMain.Instance.OvrMgr.OvrCamera.IsNoHandController;
  173. if (flag)
  174. {
  175. transform.localPosition = Vector3.zero;
  176. }
  177. IEnumerator enumerator = transform.GetEnumerator();
  178. try
  179. {
  180. while (enumerator.MoveNext())
  181. {
  182. object obj = enumerator.Current;
  183. Transform transform2 = (Transform)obj;
  184. if (!flag && transform2.name == "TouchMode")
  185. {
  186. transform2.gameObject.SetActive(false);
  187. }
  188. else
  189. {
  190. UIButton component = transform2.GetComponent<UIButton>();
  191. UILabel component2 = transform2.Find("Label").GetComponent<UILabel>();
  192. this.m_DanceModeButtonGroup.Add(component, component2);
  193. EventDelegate.Add(component.onClick, new EventDelegate.Callback(this.SetDanceMode));
  194. }
  195. }
  196. }
  197. finally
  198. {
  199. IDisposable disposable;
  200. if ((disposable = (enumerator as IDisposable)) != null)
  201. {
  202. disposable.Dispose();
  203. }
  204. }
  205. break;
  206. }
  207. case RhythmAction_Mgr.DanceType.Challenge:
  208. gameObject.transform.parent = this.CharaSelectPanel.ParentPanel.gameObject.transform;
  209. gameObject2.transform.parent = this.MusicSelectPanel.ParentPanel.gameObject.transform;
  210. UTY.GetChildObject(this.MusicSelectPanel.ParentPanel.gameObject, "SelectPanel", false).SetActive(false);
  211. this.m_DanceShowPanel.SetActive(true);
  212. break;
  213. case RhythmAction_Mgr.DanceType.VS:
  214. case RhythmAction_Mgr.DanceType.VS_Skip:
  215. gameObject.SetActive(false);
  216. this.m_SubCancelButton.gameObject.SetActive(false);
  217. break;
  218. }
  219. this.select_panelset_array_ = new DanceSelect.SelectPanelSet[]
  220. {
  221. this.CharaSelectPanel,
  222. this.MusicSelectPanel
  223. };
  224. for (int i = 0; i < this.select_panelset_array_.Length; i++)
  225. {
  226. NDebug.AssertNull(this.select_panelset_array_[i].ContentsPanel != null && this.select_panelset_array_[i].ParentPanel != null);
  227. }
  228. this.m_CharaSelectLabel = UTY.GetChildObject(this.CharaSelectPanel.ParentPanel.gameObject, "ExplanatoryText/Value", false).GetComponent<UILabel>();
  229. this.m_CharaSelectLabel.text = "ダンスを行うメイドを選択してください。";
  230. this.chara_select_mgr_ = this.CharaSelectPanel.ParentPanel.gameObject.GetComponentInChildren<CharacterSelectManager>();
  231. NDebug.AssertNull(this.chara_select_mgr_ != null);
  232. }
  233. private void CreateMusicPanel()
  234. {
  235. if (!RhythmAction_Mgr.IsVSDance || RhythmAction_Mgr.NowState != RhythmAction_Mgr.DanceState.Dance_Second)
  236. {
  237. DanceSelect.m_SelectedDance.Clear();
  238. }
  239. UIWFTabPanel uiwftabPanel = this.m_MusicUnitPanel.GetComponent<UIWFTabPanel>();
  240. if (!uiwftabPanel)
  241. {
  242. uiwftabPanel = this.m_MusicUnitPanel.AddComponent<UIWFTabPanel>();
  243. }
  244. GameObject gameObject = this.MusicSelectPanel.ContentsPanel.GetComponentInChildren<UIGrid>().gameObject;
  245. for (int i = 0; i < gameObject.transform.childCount; i++)
  246. {
  247. Transform child = gameObject.transform.GetChild(i);
  248. UnityEngine.Object.Destroy(child.gameObject);
  249. }
  250. gameObject.transform.DetachChildren();
  251. int musicReleaseFlag = RhythmAction_Mgr.MusicReleaseFlag;
  252. this.m_SecondDanceData = null;
  253. UIWFTabButton uiwftabButton = null;
  254. int j = 0;
  255. while (j < DanceSelect.dance_data_list_.Count)
  256. {
  257. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge)
  258. {
  259. break;
  260. }
  261. if (RhythmAction_Mgr.IsVSDance)
  262. {
  263. if (this.m_SecondDanceData == null && RhythmAction_Mgr.NowState == RhythmAction_Mgr.DanceState.Dance_First && VsDanceDataMgr.Instance.CurrentSetting.Music2ndID == DanceSelect.dance_data_list_[j].ID)
  264. {
  265. this.m_SecondDanceData = DanceSelect.dance_data_list_[j];
  266. }
  267. if (DanceSelect.dance_data_list_[j].Term != DanceData.DanceTerm.VS外 && !((!this.m_ForceTheater) ? (DanceSelect.dance_data_list_[j].bgType == DanceData.BgType.Theater) : (DanceSelect.dance_data_list_[j].bgType != DanceData.BgType.Theater)))
  268. {
  269. if (!this.m_ExistOnlyRelease || DanceSelect.dance_data_list_[j].scenario_progress == this.m_OnlyRelease)
  270. {
  271. if (this.m_ExistOnlyRelease || DanceSelect.dance_data_list_[j].IsPlayable)
  272. {
  273. goto IL_1EF;
  274. }
  275. }
  276. }
  277. }
  278. else if (this.m_AllRelease || DanceSelect.dance_data_list_[j].IsPlayable)
  279. {
  280. goto IL_1EF;
  281. }
  282. IL_339:
  283. j++;
  284. continue;
  285. IL_1EF:
  286. GameObject gameObject2 = Utility.CreatePrefab(gameObject, "SceneDanceSelect/Prefab/SongPlate", true);
  287. UTY.GetChildObject(gameObject2, "title", false).GetComponent<UILabel>().fontSize = DanceSelect.dance_data_list_[j].title_font_size;
  288. UTY.GetChildObject(gameObject2, "title", false).transform.localPosition = new Vector3(0f, (float)DanceSelect.dance_data_list_[j].title_offset_y, 0f);
  289. UTY.GetChildObject(gameObject2, "title", false).GetComponent<UILabel>().text = DanceSelect.dance_data_list_[j].title;
  290. gameObject2.name = DanceSelect.dance_data_list_[j].title;
  291. UIWFTabButton componentInChildren = gameObject2.GetComponentInChildren<UIWFTabButton>();
  292. if (!uiwftabButton)
  293. {
  294. uiwftabButton = componentInChildren;
  295. }
  296. if (RhythmAction_Mgr.IsVSDance)
  297. {
  298. if (DanceSelect.dance_data_list_[j].select_chara_num > GameMain.Instance.CharacterMgr.GetStockMaidCount())
  299. {
  300. componentInChildren.isEnabled = false;
  301. this.m_NotSelectDance.Add(componentInChildren);
  302. }
  303. this.m_SongPlatelUI.Add(componentInChildren);
  304. EventDelegate.Add(componentInChildren.onSelect, new EventDelegate.Callback(this.OnSelectSong));
  305. }
  306. EventDelegate.Add(componentInChildren.onSelect, new EventDelegate.Callback(this.OnSelectSong));
  307. goto IL_339;
  308. }
  309. gameObject.GetComponent<UIGrid>().repositionNow = true;
  310. this.MusicSelectPanel.ContentsPanel.GetComponent<UIScrollView>().ResetPosition();
  311. uiwftabPanel.UpdateChildren();
  312. if (RhythmAction_Mgr.IsVSDance && this.m_NotSelectDance.Count > 0)
  313. {
  314. foreach (UIWFTabButton uiwftabButton2 in this.m_SongPlatelUI)
  315. {
  316. EventDelegate.Add(uiwftabButton2.onClick, new EventDelegate.Callback(this.PlateDisable));
  317. }
  318. }
  319. if (this.music_info_ != null)
  320. {
  321. this.music_info_.Release();
  322. }
  323. GameObject childObject = UTY.GetChildObject(this.MusicSelectPanel.ParentPanel.gameObject, "MujicInfo", false);
  324. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge)
  325. {
  326. childObject.SetActive(false);
  327. this.music_info_ = new DanceSelectMusicInfo(this.m_DanceShowPanel);
  328. }
  329. else
  330. {
  331. this.music_info_ = new DanceSelectMusicInfo(childObject);
  332. }
  333. GameObject infoUI = this.music_info_.InfoUI;
  334. if (RhythmAction_Mgr.IsVSDance)
  335. {
  336. infoUI.SetActive(false);
  337. }
  338. if (uiwftabButton && DanceSelect.m_SelectedDance.Count == 0 && this.IsFreeDance())
  339. {
  340. uiwftabPanel.Select(uiwftabButton);
  341. }
  342. }
  343. private void PlateDisable()
  344. {
  345. foreach (UIWFSelectButton uiwfselectButton in this.m_NotSelectDance)
  346. {
  347. uiwfselectButton.isEnabled = false;
  348. }
  349. }
  350. private void SwitchAllRelease()
  351. {
  352. this.m_AllRelease = !this.m_AllRelease;
  353. this.m_ReleaseButton.defaultColor = (this.m_ReleaseButton.hover = ((!this.m_AllRelease) ? this.m_ReleaseOffCol : this.m_ReleaseOnCol));
  354. this.CreateMusicPanel();
  355. }
  356. public void Start()
  357. {
  358. this.CreateMusicPanel();
  359. this.Init();
  360. this.m_ReleaseButton.defaultColor = (this.m_ReleaseButton.hover = ((!this.m_AllRelease) ? this.m_ReleaseOffCol : this.m_ReleaseOnCol));
  361. if (!this.IsFreeDance())
  362. {
  363. this.m_SettingObj.SetUIMode(string.Empty);
  364. }
  365. this.m_WarningText.SetActive(false);
  366. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge)
  367. {
  368. if (DanceSelect.ChallengeDay < GameMain.Instance.CharacterMgr.status.days)
  369. {
  370. List<DanceData> list = (from e in DanceSelect.dance_data_list_
  371. where e.bgType == DanceData.BgType.Theater
  372. select e).ToList<DanceData>();
  373. if (!this.m_AllRelease)
  374. {
  375. list = (from e in list
  376. where e.IsPlayable
  377. select e).ToList<DanceData>();
  378. }
  379. int index = UnityEngine.Random.Range(0, list.Count);
  380. string title = list[index].title;
  381. for (int i = 0; i < list.Count; i++)
  382. {
  383. if (list[i].title == title)
  384. {
  385. DanceSelect.m_SelectedDance.Clear();
  386. DanceSelect.m_SelectedDance.Add(list[i]);
  387. DanceSelect.m_ChallengeDanceData = list[i];
  388. break;
  389. }
  390. }
  391. DanceSelect.ChallengeDay = GameMain.Instance.CharacterMgr.status.days;
  392. }
  393. else
  394. {
  395. DanceSelect.m_SelectedDance.Clear();
  396. DanceSelect.m_SelectedDance.Add(DanceSelect.m_ChallengeDanceData);
  397. }
  398. this.music_info_.SetDanceData(DanceSelect.m_SelectedDance.First<DanceData>());
  399. this.m_SubOkButton.isEnabled = (DanceSelect.m_ChallengeDanceData.select_chara_num <= GameMain.Instance.CharacterMgr.GetStockMaidCount());
  400. this.m_WarningText.SetActive(!this.m_SubOkButton.isEnabled);
  401. }
  402. }
  403. protected override void OnCall()
  404. {
  405. uGUITutorialPanel.OpenTutorial("SceneDanceSelect", null, false);
  406. GameMain.Instance.SysShortcut.strSceneHelpName = "SceneDanceSelect";
  407. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  408. characterMgr.DeactivateCharaAll();
  409. for (int i = 0; i < characterMgr.GetMaidCount(); i++)
  410. {
  411. if (characterMgr.GetMaid(i) != null)
  412. {
  413. characterMgr.Deactivate(i, false);
  414. }
  415. }
  416. GameMain.Instance.BgMgr.ChangeBg(this.m_BGName);
  417. GameMain.Instance.MainCamera.SetTargetPos(this.m_CamPos, true);
  418. GameMain.Instance.MainCamera.SetDistance(this.m_CamDistance, true);
  419. GameMain.Instance.MainCamera.SetAroundAngle(this.m_CamAngle, true);
  420. GameMain.Instance.SoundMgr.PlayBGM(this.m_BGM, 0.5f, true);
  421. this.Init();
  422. if (this.IsFreeDance())
  423. {
  424. this.CallDanceModeSelect();
  425. }
  426. else if (RhythmAction_Mgr.IsVSDance && DanceSelect.m_SelectedDance.Count > 0)
  427. {
  428. this.CallCharaSelect();
  429. }
  430. else
  431. {
  432. this.CallMusicSelect();
  433. }
  434. if (RhythmAction_Mgr.IsVSDance && DanceSelect.m_SelectedDance.Count == 0)
  435. {
  436. UIWFTabPanel componentInChildren = this.MusicSelectPanel.ContentsPanel.GetComponentInChildren<UIWFTabPanel>();
  437. componentInChildren.Select(this.MusicSelectPanel.ContentsPanel.GetComponentInChildren<UIGrid>().GetChild(0).GetComponentInChildren<UIWFTabButton>());
  438. }
  439. if (GameMain.Instance.VRMode)
  440. {
  441. UnityEngine.Object original = Resources.Load("OVR/DanceOVRDialog");
  442. GameObject gameObject = UnityEngine.Object.Instantiate(original) as GameObject;
  443. GameObject gameObject2 = GameObject.Find("/UI Root");
  444. gameObject.transform.SetParent(gameObject2.transform, false);
  445. gameObject.GetComponent<UIPanel>().depth = 250;
  446. this.ovr_dance_cam_dlg_ = gameObject.GetComponent<FFNameDialog>();
  447. this.ovr_dance_cam_dlg_.Init();
  448. gameObject.SetActive(false);
  449. }
  450. }
  451. public void OnDestroy()
  452. {
  453. if (this.music_info_ != null)
  454. {
  455. this.music_info_.Release();
  456. }
  457. }
  458. public override void Update()
  459. {
  460. base.Update();
  461. if (GameMain.Instance.MainCamera.IsFadeProc() || GameMain.Instance.MainCamera.IsFadeOut())
  462. {
  463. return;
  464. }
  465. if (this.m_ReleaseButton.gameObject.activeSelf)
  466. {
  467. return;
  468. }
  469. foreach (KeyCode key in this.m_ReleseShowKey)
  470. {
  471. if (!Input.GetKey(key))
  472. {
  473. return;
  474. }
  475. }
  476. this.m_ReleaseButton.gameObject.SetActive(true);
  477. }
  478. private void Init()
  479. {
  480. this.m_DanceModePanel.alpha = 0f;
  481. for (int i = 0; i < this.select_panelset_array_.Length; i++)
  482. {
  483. this.select_panelset_array_[i].ParentPanel.gameObject.SetActive(true);
  484. this.select_panelset_array_[i].ParentPanel.alpha = 0f;
  485. }
  486. DanceMain.KaraokeMode = false;
  487. UIRect danceModePanel = this.m_DanceModePanel;
  488. float num = 0f;
  489. this.MusicSelectPanel.ParentPanel.alpha = num;
  490. num = num;
  491. this.CharaSelectPanel.ParentPanel.alpha = num;
  492. danceModePanel.alpha = num;
  493. if (this.IsFreeDance())
  494. {
  495. this.m_DanceModePanel.alpha = 1f;
  496. }
  497. else if (RhythmAction_Mgr.IsVSDance && DanceSelect.m_SelectedDance.Count > 0)
  498. {
  499. this.CharaSelectPanel.ParentPanel.alpha = 1f;
  500. }
  501. else
  502. {
  503. this.MusicSelectPanel.ParentPanel.alpha = 1f;
  504. }
  505. }
  506. public void SetCancelLabel(string cancel_call_label)
  507. {
  508. this.cancel_call_label_ = cancel_call_label;
  509. }
  510. private void CallMusicSelect()
  511. {
  512. string normalSprite = "cm3d2_common_nextbuttom";
  513. if (this.IsFreeDance())
  514. {
  515. this.OkButton.normalSprite = normalSprite;
  516. this.OkButton.isEnabled = true;
  517. }
  518. else
  519. {
  520. this.m_SubOkButton.normalSprite = normalSprite;
  521. }
  522. this.status_ = DanceSelect.Status.MusicSelect;
  523. if (this.MusicSelectPanel.ParentPanel.alpha != 1f)
  524. {
  525. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  526. {
  527. "easetype",
  528. iTween.EaseType.easeOutQuad,
  529. "from",
  530. 0f,
  531. "to",
  532. 1f,
  533. "time",
  534. DanceSelect.kFadeTime,
  535. "delay",
  536. 0,
  537. "onUpdate",
  538. "OnUpdateFadeMusicPanel"
  539. }));
  540. if (this.CharaSelectPanel.ParentPanel.alpha != 0f)
  541. {
  542. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  543. {
  544. "easetype",
  545. iTween.EaseType.easeOutQuad,
  546. "from",
  547. 1f,
  548. "to",
  549. 0f,
  550. "time",
  551. DanceSelect.kFadeTime,
  552. "delay",
  553. 0,
  554. "onUpdate",
  555. "OnUpdateFadeCharaPanel"
  556. }));
  557. }
  558. else if (this.m_DanceModePanel.alpha != 0f)
  559. {
  560. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  561. {
  562. "easetype",
  563. iTween.EaseType.easeOutQuad,
  564. "from",
  565. 1f,
  566. "to",
  567. 0f,
  568. "time",
  569. DanceSelect.kFadeTime,
  570. "delay",
  571. 0,
  572. "onUpdate",
  573. "OnUpdateDanceModePanel"
  574. }));
  575. }
  576. }
  577. }
  578. private void CallCharaSelect()
  579. {
  580. string normalSprite = "cm3d2_common_okbuttom";
  581. if (RhythmAction_Mgr.IsVSDance)
  582. {
  583. this.m_SubOkButton.normalSprite = normalSprite;
  584. }
  585. else
  586. {
  587. this.OkButton.normalSprite = normalSprite;
  588. }
  589. this.status_ = DanceSelect.Status.CaharaSelect;
  590. DanceSelect.m_SelectedMaid.Clear();
  591. if (DanceSelect.m_SelectedDance.Count > 0)
  592. {
  593. int select_chara_num = DanceSelect.m_SelectedDance.First<DanceData>().select_chara_num;
  594. if (RhythmAction_Mgr.IsVSDance && this.m_SecondDanceData != null)
  595. {
  596. DanceSelect.m_SelectedDance.Add(this.m_SecondDanceData);
  597. }
  598. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge || RhythmAction_Mgr.IsVSDance)
  599. {
  600. this.m_CharaSelectLabel.text = "ダンスを行うメイドを" + select_chara_num + "人選択してください。";
  601. }
  602. if (1 < select_chara_num)
  603. {
  604. if (RhythmAction_Mgr.IsVSDance)
  605. {
  606. this.m_SubOkButton.isEnabled = false;
  607. }
  608. else
  609. {
  610. this.OkButton.isEnabled = false;
  611. }
  612. CharacterSelectManager.CallBackOnMultiSelect callBackOnMultiSelect = delegate(Maid[] maid_array)
  613. {
  614. DanceSelect.m_SelectedMaid.Clear();
  615. for (int j = 0; j < maid_array.Length; j++)
  616. {
  617. DanceSelect.m_SelectedMaid.Add(maid_array[j]);
  618. }
  619. if (RhythmAction_Mgr.IsVSDance)
  620. {
  621. this.m_SubOkButton.isEnabled = DanceSelect.m_SelectedMaid.All((Maid e) => e != null);
  622. }
  623. else if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge)
  624. {
  625. this.OkButton.isEnabled = DanceSelect.m_SelectedMaid.All((Maid e) => e != null);
  626. }
  627. else
  628. {
  629. this.OkButton.isEnabled = DanceSelect.m_SelectedMaid.Any((Maid e) => e != null);
  630. }
  631. };
  632. this.chara_select_mgr_.SetCallBackOnMultiSelect(callBackOnMultiSelect);
  633. this.chara_select_mgr_.Create(CharacterSelectManager.Type.Multiple, select_chara_num, true);
  634. }
  635. else
  636. {
  637. CharacterSelectManager.CallBackOnSelect callBackCallBackOnSelect = delegate(Maid select_maid)
  638. {
  639. DanceSelect.m_SelectedMaid.Clear();
  640. DanceSelect.m_SelectedMaid.Add(select_maid);
  641. };
  642. this.chara_select_mgr_.SetCallBackCallBackOnSelect(callBackCallBackOnSelect);
  643. this.chara_select_mgr_.Create(CharacterSelectManager.Type.Select, 3, true);
  644. }
  645. if (RhythmAction_Mgr.IsVSDance)
  646. {
  647. for (int i = 0; i < GameMain.Instance.CharacterMgr.GetStockMaidCount(); i++)
  648. {
  649. Maid stockMaid = GameMain.Instance.CharacterMgr.GetStockMaid(i);
  650. if (!stockMaid.status.mainChara || stockMaid.status.heroineType != HeroineType.Original)
  651. {
  652. this.chara_select_mgr_.RemoveMaidPlate(stockMaid);
  653. }
  654. }
  655. }
  656. }
  657. if (this.CharaSelectPanel.ParentPanel.alpha != 1f)
  658. {
  659. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  660. {
  661. "easetype",
  662. iTween.EaseType.easeOutQuad,
  663. "from",
  664. 0f,
  665. "to",
  666. 1f,
  667. "time",
  668. DanceSelect.kFadeTime,
  669. "delay",
  670. 0,
  671. "onUpdate",
  672. "OnUpdateFadeCharaPanel"
  673. }));
  674. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  675. {
  676. "easetype",
  677. iTween.EaseType.easeOutQuad,
  678. "from",
  679. 1f,
  680. "to",
  681. 0f,
  682. "time",
  683. DanceSelect.kFadeTime,
  684. "delay",
  685. 0,
  686. "onUpdate",
  687. "OnUpdateFadeMusicPanel"
  688. }));
  689. }
  690. }
  691. private void CallDanceModeSelect()
  692. {
  693. this.status_ = DanceSelect.Status.DanceModeSelect;
  694. this.m_MainButtonFade = true;
  695. if (this.m_DanceModePanel.alpha != 1f)
  696. {
  697. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  698. {
  699. "easetype",
  700. iTween.EaseType.easeOutQuad,
  701. "from",
  702. 0f,
  703. "to",
  704. 1f,
  705. "time",
  706. DanceSelect.kFadeTime,
  707. "delay",
  708. 0,
  709. "onUpdate",
  710. "OnUpdateDanceModePanel"
  711. }));
  712. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  713. {
  714. "easetype",
  715. iTween.EaseType.easeOutQuad,
  716. "from",
  717. 1f,
  718. "to",
  719. 0f,
  720. "time",
  721. DanceSelect.kFadeTime,
  722. "delay",
  723. 0,
  724. "onUpdate",
  725. "OnUpdateFadeMusicPanel"
  726. }));
  727. }
  728. }
  729. private void OnUpdateFadeMusicPanel(float val)
  730. {
  731. this.MusicSelectPanel.ParentPanel.alpha = val;
  732. if (this.m_MainButtonFade)
  733. {
  734. this.m_MainButtonPanel.alpha = val;
  735. }
  736. }
  737. private void OnUpdateFadeCharaPanel(float val)
  738. {
  739. this.CharaSelectPanel.ParentPanel.alpha = val;
  740. }
  741. private void OnUpdateDanceModePanel(float val)
  742. {
  743. this.m_DanceModePanel.alpha = val;
  744. }
  745. private void OnSelectSong()
  746. {
  747. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge)
  748. {
  749. return;
  750. }
  751. string name = UIWFSelectButton.current.gameObject.transform.parent.name;
  752. if (!UIWFSelectButton.current.isSelected)
  753. {
  754. return;
  755. }
  756. for (int i = 0; i < DanceSelect.dance_data_list_.Count; i++)
  757. {
  758. if (DanceSelect.dance_data_list_[i].title == name)
  759. {
  760. DanceSelect.m_SelectedDance.Clear();
  761. DanceSelect.m_SelectedDance.Add(DanceSelect.dance_data_list_[i]);
  762. this.music_info_.SetDanceData(DanceSelect.m_SelectedDance.First<DanceData>());
  763. if (!this.music_info_.InfoUI.activeSelf)
  764. {
  765. this.music_info_.InfoUI.SetActive(true);
  766. }
  767. break;
  768. }
  769. }
  770. }
  771. private void OnClickOkButton()
  772. {
  773. if (DanceSelect.m_SelectedDance == null)
  774. {
  775. return;
  776. }
  777. if (this.status_ == DanceSelect.Status.MusicSelect)
  778. {
  779. if (this.MusicSelectPanel.ParentPanel.alpha != 1f)
  780. {
  781. return;
  782. }
  783. this.m_MainButtonFade = false;
  784. this.CallCharaSelect();
  785. }
  786. else if (this.status_ == DanceSelect.Status.CaharaSelect)
  787. {
  788. if (DanceSelect.m_SelectedDance.First<DanceData>().select_chara_num == 1 && DanceSelect.m_SelectedMaid.Count <= 0)
  789. {
  790. return;
  791. }
  792. if (this.CharaSelectPanel.ParentPanel.alpha != 1f)
  793. {
  794. return;
  795. }
  796. DanceMain.SelectDanceData = DanceSelect.m_SelectedDance.First<DanceData>();
  797. string str = DanceSelect.m_SelectedDance.First<DanceData>().scene_name;
  798. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Challenge && !string.IsNullOrEmpty(DanceSelect.m_SelectedDance.First<DanceData>().danceshow_scene))
  799. {
  800. str = DanceSelect.m_SelectedDance.First<DanceData>().danceshow_scene;
  801. }
  802. GameMain.Instance.ScriptMgr.EvalScript("tf['dance_scene_name'] = '" + str + "';");
  803. foreach (Maid maid in DanceSelect.m_SelectedMaid)
  804. {
  805. if (maid)
  806. {
  807. DanceSelect.SelectTopMaid = maid;
  808. break;
  809. }
  810. }
  811. this.m_SettingObj.DisSelectable();
  812. if (!GameMain.Instance.VRMode)
  813. {
  814. this.Finish();
  815. }
  816. else if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Touch)
  817. {
  818. this.OnOvrCamFree();
  819. }
  820. else
  821. {
  822. this.ovr_dance_cam_dlg_.Show("カメラのタイプを選んで下さい。", "自由カメラ", new FFNameDialog.OnClick(this.OnOvrCamFree), "移動カメラ", new FFNameDialog.OnClick(this.OnOvrCamMove));
  823. }
  824. }
  825. }
  826. private void OnClickCancelButton()
  827. {
  828. switch (this.status_)
  829. {
  830. case DanceSelect.Status.MusicSelect:
  831. if (this.MusicSelectPanel.ParentPanel.alpha != 1f)
  832. {
  833. return;
  834. }
  835. if (this.IsFreeDance())
  836. {
  837. this.m_MainButtonFade = true;
  838. this.CallDanceModeSelect();
  839. }
  840. else if (!string.IsNullOrEmpty(this.cancel_call_label_))
  841. {
  842. this.CancelFinish();
  843. }
  844. break;
  845. case DanceSelect.Status.CaharaSelect:
  846. if (this.CharaSelectPanel.ParentPanel.alpha != 1f)
  847. {
  848. return;
  849. }
  850. this.m_MainButtonFade = false;
  851. this.CallMusicSelect();
  852. break;
  853. case DanceSelect.Status.DanceModeSelect:
  854. if (this.m_DanceModePanel.alpha != 1f)
  855. {
  856. return;
  857. }
  858. if (!string.IsNullOrEmpty(this.cancel_call_label_))
  859. {
  860. this.CancelFinish();
  861. }
  862. break;
  863. }
  864. }
  865. private void CancelFinish()
  866. {
  867. DanceSelectManager danceSelectManager = base.parent_mgr as DanceSelectManager;
  868. NDebug.AssertNull(danceSelectManager != null);
  869. danceSelectManager.move_screen.SetNextLabel(this.cancel_call_label_);
  870. DanceSelect.m_SelectedDance.Clear();
  871. this.Finish();
  872. }
  873. private void SetDanceMode()
  874. {
  875. if (this.m_DanceModePanel.alpha != 1f)
  876. {
  877. return;
  878. }
  879. RhythmAction_Mgr.DanceType nowDance = RhythmAction_Mgr.NowDance;
  880. if (this.m_DanceModeButtonGroup[UIButton.current].transform.parent.name == "GameMode")
  881. {
  882. RhythmAction_Mgr.SetDanceType(RhythmAction_Mgr.DanceType.Free);
  883. }
  884. else if (this.m_DanceModeButtonGroup[UIButton.current].transform.parent.name == "ViewMode")
  885. {
  886. RhythmAction_Mgr.SetDanceType(RhythmAction_Mgr.DanceType.View);
  887. }
  888. else if (this.m_DanceModeButtonGroup[UIButton.current].transform.parent.name == "TouchMode")
  889. {
  890. RhythmAction_Mgr.SetDanceType(RhythmAction_Mgr.DanceType.Touch);
  891. }
  892. this.m_SettingObj.SetUIMode(this.m_DanceModeButtonGroup[UIButton.current].text);
  893. this.CallMusicSelect();
  894. }
  895. private void OnOvrCamFree()
  896. {
  897. GameMain.Instance.CMSystem.SetTmpGenericFlag("ダンスOVRカメラタイプ", 0);
  898. this.Finish();
  899. }
  900. private void OnOvrCamMove()
  901. {
  902. GameMain.Instance.CMSystem.SetTmpGenericFlag("ダンスOVRカメラタイプ", 1);
  903. this.Finish();
  904. }
  905. private bool IsFreeDance()
  906. {
  907. bool flag = RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Free;
  908. flag |= (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.View);
  909. return flag | RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Touch;
  910. }
  911. public override bool Finish()
  912. {
  913. bool flag = base.Finish();
  914. if (flag && 0 < DanceSelect.m_SelectedMaid.Count && RhythmAction_Mgr.IsVSDance)
  915. {
  916. GameMain.Instance.SoundMgr.StopBGM(1.5f);
  917. }
  918. return flag;
  919. }
  920. protected override void OnFinish()
  921. {
  922. if (DanceSelect.m_SelectedDance.Count > 0)
  923. {
  924. DanceSelect.SelectMaidActive(DanceSelect.m_SelectedDance.First<DanceData>());
  925. }
  926. base.parent_mgr.CallScreen("Move");
  927. GameMain.Instance.LoadIcon.NextLoadIcontImmediatelyDisplay();
  928. }
  929. public static void BenchMarkInit()
  930. {
  931. DanceSelect.SelectTopMaid = null;
  932. DanceSelect.m_SelectedDance.Clear();
  933. DanceSelect.m_SelectedMaid.Clear();
  934. DanceSelect.CreateDanceData();
  935. DanceData danceData = DanceSelect.dance_data_list_.SingleOrDefault((DanceData e) => e.title == "Night Magic Fire");
  936. NDebug.Assert(danceData != null, "ダンス曲「Night Magic Fire」が存在してません");
  937. DanceMain.SelectDanceData = danceData;
  938. GameMain.Instance.ScriptMgr.EvalScript("tf['dance_scene_name'] = '" + danceData.scene_name + "';");
  939. }
  940. public static void TrialVsDanceInit()
  941. {
  942. }
  943. public static void SelectMaidActive(DanceData set_dance)
  944. {
  945. if (set_dance == null)
  946. {
  947. return;
  948. }
  949. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  950. characterMgr.DeactivateCharaAll();
  951. GameMain.Instance.CMSystem.SetTmpGenericFlag("ダンス設定人数", 0);
  952. if (0 < DanceSelect.m_SelectedMaid.Count)
  953. {
  954. int num = 0;
  955. for (int i = 0; i < set_dance.select_chara_num; i++)
  956. {
  957. if (i >= DanceSelect.m_SelectedMaid.Count)
  958. {
  959. break;
  960. }
  961. if (DanceSelect.m_SelectedMaid[i])
  962. {
  963. characterMgr.SetActiveMaid(DanceSelect.m_SelectedMaid[i], i);
  964. num++;
  965. }
  966. }
  967. GameMain.Instance.CMSystem.SetTmpGenericFlag("ダンス設定人数", num);
  968. }
  969. }
  970. public static void SetNextDance()
  971. {
  972. if (!RhythmAction_Mgr.IsVSDance || DanceMain.KaraokeMode)
  973. {
  974. DanceMain.SelectDanceData = null;
  975. return;
  976. }
  977. if (!DanceBattle_Mgr.Instance.IsWin() && RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.VS_Skip)
  978. {
  979. DanceMain.SelectDanceData = null;
  980. }
  981. else if (DanceSelect.m_SelectedDance.Count > 0)
  982. {
  983. DanceSelect.m_SelectedDance.RemoveAt(0);
  984. if (DanceSelect.m_SelectedDance.Count > 0)
  985. {
  986. DanceMain.SelectDanceData = DanceSelect.m_SelectedDance.First<DanceData>();
  987. }
  988. }
  989. }
  990. public static List<DanceData> GetDanceDataList()
  991. {
  992. DanceSelect.CreateDanceData();
  993. return DanceSelect.dance_data_list_;
  994. }
  995. public static List<Maid> SelectedMaid
  996. {
  997. get
  998. {
  999. return DanceSelect.m_SelectedMaid;
  1000. }
  1001. }
  1002. public static Maid SelectTopMaid { get; private set; }
  1003. private bool m_AllRelease
  1004. {
  1005. get
  1006. {
  1007. return DanceSetting.Settings.AllRelease;
  1008. }
  1009. set
  1010. {
  1011. DanceSetting.Settings.AllRelease = value;
  1012. }
  1013. }
  1014. public static float kFadeTime = 0.3f;
  1015. public static List<DanceData> dance_data_list_;
  1016. private const int m_SongSelectMax = 2;
  1017. private const string m_NMFtitle = "Night Magic Fire";
  1018. private const string m_ETYLtitle = "entrance to you";
  1019. private const string m_TutorialName = "SceneDanceSelect";
  1020. public DanceSelect.SelectPanelSet CharaSelectPanel;
  1021. public DanceSelect.SelectPanelSet MusicSelectPanel;
  1022. public UIButton OkButton;
  1023. public UIButton CancelButton;
  1024. private UIPanel m_MainButtonPanel;
  1025. private bool m_MainButtonFade;
  1026. [SerializeField]
  1027. [Header("背景名")]
  1028. private string m_BGName = "LiveStage";
  1029. [SerializeField]
  1030. [Header("BGM名")]
  1031. private string m_BGM = "BGM020.ogg";
  1032. [SerializeField]
  1033. private Vector3 m_CamPos = new Vector3(0.03458221f, 0.4823192f, 0.1880018f);
  1034. [SerializeField]
  1035. private float m_CamDistance = 7.199994f;
  1036. [SerializeField]
  1037. private Vector2 m_CamAngle = new Vector2(180.2993f, 21.18012f);
  1038. [SerializeField]
  1039. [Header("右下のOKボタン")]
  1040. private UIButton m_SubOkButton;
  1041. [SerializeField]
  1042. [Header("右下のCancelボタン")]
  1043. private UIButton m_SubCancelButton;
  1044. [SerializeField]
  1045. [Header("Backボタン")]
  1046. private UIButton m_BackButton;
  1047. [SerializeField]
  1048. [Header("ダンスモード設定パネル")]
  1049. private UIPanel m_DanceModePanel;
  1050. [SerializeField]
  1051. [Header("人数不足警告テキスト")]
  1052. private GameObject m_WarningText;
  1053. private Dictionary<UIButton, UILabel> m_DanceModeButtonGroup = new Dictionary<UIButton, UILabel>();
  1054. [SerializeField]
  1055. [Header("チャレンジ時の楽曲情報UIパネル")]
  1056. private GameObject m_DanceShowPanel;
  1057. [SerializeField]
  1058. [Header("楽曲選択グリッド")]
  1059. private GameObject m_MusicUnitPanel;
  1060. [SerializeField]
  1061. [Header("ダンス設定UI")]
  1062. private DanceSetting m_SettingObj;
  1063. [SerializeField]
  1064. [Header("曲全解放ボタン")]
  1065. private UIButton m_ReleaseButton;
  1066. [SerializeField]
  1067. private Color m_ReleaseOnCol;
  1068. [SerializeField]
  1069. private Color m_ReleaseOffCol;
  1070. [SerializeField]
  1071. [Header("全曲解放ボタンを表示する際のショートカットキー")]
  1072. private List<KeyCode> m_ReleseShowKey = new List<KeyCode>
  1073. {
  1074. KeyCode.D,
  1075. KeyCode.N,
  1076. KeyCode.C
  1077. };
  1078. private UILabel m_CharaSelectLabel;
  1079. private List<UIWFSelectButton> m_NotSelectDance = new List<UIWFSelectButton>();
  1080. private List<UIWFTabButton> m_SongPlatelUI = new List<UIWFTabButton>();
  1081. private static List<DanceData> m_SelectedDance = new List<DanceData>();
  1082. private static List<Maid> m_SelectedMaid = new List<Maid>();
  1083. private DanceData m_SecondDanceData;
  1084. private static DanceData m_ChallengeDanceData = null;
  1085. public static int ChallengeDay = 0;
  1086. private bool m_ForceTheater;
  1087. private bool m_ExistOnlyRelease;
  1088. private int m_OnlyRelease = -1;
  1089. private DanceSelectMusicInfo music_info_;
  1090. private DanceSelect.SelectPanelSet[] select_panelset_array_;
  1091. private CharacterSelectManager chara_select_mgr_;
  1092. private DanceSelect.Status status_;
  1093. private string cancel_call_label_;
  1094. private FFNameDialog ovr_dance_cam_dlg_;
  1095. [Serializable]
  1096. public class SelectPanelSet
  1097. {
  1098. public UIPanel ParentPanel;
  1099. public UIPanel ContentsPanel;
  1100. }
  1101. private enum Status
  1102. {
  1103. MusicSelect,
  1104. CaharaSelect,
  1105. DanceModeSelect
  1106. }
  1107. }