DanceSelect.cs 34 KB

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