DanceSelect.cs 36 KB

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