DanceSetting.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Runtime.Serialization.Formatters.Binary;
  7. using System.Text;
  8. using Dance;
  9. using I2.Loc;
  10. using UnityEngine;
  11. public class DanceSetting : MonoBehaviour
  12. {
  13. private void Awake()
  14. {
  15. this.m_OrijinBgheight = this.m_SettingUIBg.height;
  16. if (!DanceSetting.m_IsFileCheck)
  17. {
  18. Action<string, bool> action = delegate(string file_path, bool binary_ver)
  19. {
  20. float num = -1f;
  21. FileInfo fileInfo = new FileInfo(file_path);
  22. try
  23. {
  24. if (binary_ver)
  25. {
  26. using (FileStream fileStream = new FileStream(file_path, FileMode.Open, FileAccess.Read))
  27. {
  28. BinaryFormatter binaryFormatter = new BinaryFormatter();
  29. string text = (string)binaryFormatter.Deserialize(fileStream);
  30. string text2 = (string)binaryFormatter.Deserialize(fileStream);
  31. float.TryParse(text2.Split(new char[]
  32. {
  33. ':'
  34. })[1], out num);
  35. DanceSetting.Settings = (SettingData)binaryFormatter.Deserialize(fileStream);
  36. fileStream.Close();
  37. }
  38. }
  39. else
  40. {
  41. using (StreamReader streamReader = new StreamReader(fileInfo.OpenRead(), Encoding.UTF8))
  42. {
  43. string text3 = streamReader.ReadLine();
  44. if (text3 == "@Dance_Setting")
  45. {
  46. string s = streamReader.ReadLine().Split(new char[]
  47. {
  48. ':'
  49. })[1];
  50. float.TryParse(s, out num);
  51. text3 = streamReader.ReadLine();
  52. }
  53. DanceSetting.Settings = JsonUtility.FromJson<SettingData>(text3);
  54. streamReader.Close();
  55. }
  56. }
  57. }
  58. catch (Exception ex)
  59. {
  60. if (num > 0f)
  61. {
  62. if (num == 1f)
  63. {
  64. Debug.Log("2017/11/22以前の設定データです");
  65. }
  66. }
  67. else
  68. {
  69. DanceSetting.Settings = new SettingData();
  70. File.Delete(file_path);
  71. Debug.LogWarning("ダンス設定読み込みに失敗したので初期化します。エラー箇所:" + ex.StackTrace);
  72. }
  73. }
  74. };
  75. string fullPath = Path.GetFullPath(".\\dance_setting_br.dat");
  76. DanceSetting.m_IsFileExist = File.Exists(fullPath);
  77. if (DanceSetting.m_IsFileExist)
  78. {
  79. action(fullPath, true);
  80. }
  81. else
  82. {
  83. string fullPath2 = Path.GetFullPath(".\\dance_setting.set");
  84. string fullPath3 = Path.GetFullPath(".\\dance_setting.dat");
  85. if (File.Exists(fullPath2))
  86. {
  87. action(fullPath2, false);
  88. File.Delete(fullPath2);
  89. }
  90. else if (File.Exists(fullPath3))
  91. {
  92. action(fullPath3, false);
  93. File.Delete(fullPath3);
  94. }
  95. }
  96. DanceSetting.m_IsFileCheck = true;
  97. }
  98. }
  99. private void Start()
  100. {
  101. EventDelegate.Callback callback = delegate()
  102. {
  103. GameObject gameObject = GameObject.Find("Drop-down List");
  104. if (gameObject)
  105. {
  106. int width = gameObject.GetComponentInChildren<UISprite>().width;
  107. gameObject.transform.position = UIButton.current.transform.TransformPoint(Vector3.down * this.m_PopUpOffset + Vector3.left * (float)width / 2f);
  108. }
  109. };
  110. IEnumerator enumerator = this.m_ButtonGroup.GetEnumerator();
  111. try
  112. {
  113. while (enumerator.MoveNext())
  114. {
  115. object obj = enumerator.Current;
  116. Transform transform = (Transform)obj;
  117. UIPopupList componentInChildren = transform.GetComponentInChildren<UIPopupList>();
  118. if (componentInChildren)
  119. {
  120. DanceSetting.NeedData needData = new DanceSetting.NeedData();
  121. if (transform.Find("Label"))
  122. {
  123. needData.Label = transform.Find("Label").GetComponent<UILabel>();
  124. needData.localize = needData.Label.GetComponent<Localize>();
  125. }
  126. needData.Button = transform.GetComponentInChildren<UIButton>();
  127. EventDelegate.Add(needData.Button.onClick, callback);
  128. needData.Collider = transform.GetComponentInChildren<BoxCollider>();
  129. this.m_SettingUIList.Add(componentInChildren, needData);
  130. EventDelegate.Add(componentInChildren.onChange, new EventDelegate.Callback(this.ValueSetting));
  131. this.SetUIValue(componentInChildren);
  132. }
  133. }
  134. }
  135. finally
  136. {
  137. IDisposable disposable;
  138. if ((disposable = (enumerator as IDisposable)) != null)
  139. {
  140. disposable.Dispose();
  141. }
  142. }
  143. }
  144. private void SetUIValue(UIPopupList list)
  145. {
  146. DanceSetting.UIInspectorSetting uiinspectorSetting = this.m_SettingList.SingleOrDefault((DanceSetting.UIInspectorSetting e) => e.PopUpUI == list);
  147. if (uiinspectorSetting == null)
  148. {
  149. return;
  150. }
  151. foreach (string text in list.items)
  152. {
  153. bool flag = false;
  154. bool flag2 = false;
  155. string text2 = text.Replace("\r", string.Empty);
  156. string text3 = text2;
  157. string[] array = text2.Split(new char[]
  158. {
  159. '/'
  160. });
  161. if (array != null && 1 < array.Length)
  162. {
  163. text3 = array[array.Length - 1];
  164. flag2 = true;
  165. }
  166. switch (uiinspectorSetting.MyType)
  167. {
  168. case DanceSetting.SettingType.Product:
  169. flag = this.IsProductMatch(text3);
  170. break;
  171. case DanceSetting.SettingType.Audience:
  172. flag = this.IsAudienceMatch(text3);
  173. break;
  174. case DanceSetting.SettingType.DepthofField:
  175. flag = this.IsSettingOn(text3, DanceSetting.Settings.IsDepthOfFieldOn);
  176. break;
  177. case DanceSetting.SettingType.SePlay:
  178. flag = this.IsSettingOn(text3, DanceSetting.Settings.IsSEPlay);
  179. break;
  180. case DanceSetting.SettingType.Voltage:
  181. flag = this.IsVoltageMatch(text3);
  182. break;
  183. case DanceSetting.SettingType.BlackBg:
  184. flag = this.IsSettingOn(text3, DanceSetting.Settings.IsblackBGon);
  185. break;
  186. case DanceSetting.SettingType.NoteEffect:
  187. flag = this.IsEffectLigthtMatch(text3);
  188. break;
  189. case DanceSetting.SettingType.NoteTiming:
  190. flag = this.IsTimingMatch(text3);
  191. break;
  192. case DanceSetting.SettingType.JudgeTiming:
  193. flag = this.IsJudgeTimingMatch(text3);
  194. break;
  195. case DanceSetting.SettingType.FpsCam:
  196. flag = this.IsSettingOn(text3, DanceSetting.Settings.FPSCamMode);
  197. break;
  198. case DanceSetting.SettingType.Cutin:
  199. flag = this.IsCutinMatch(text3);
  200. break;
  201. case DanceSetting.SettingType.Undress:
  202. flag = this.IsUndressFaceMatch(text3);
  203. break;
  204. case DanceSetting.SettingType.Subtitle:
  205. flag = this.IsSettingOn(text3, DanceSetting.Settings.IsSubtitleOn);
  206. break;
  207. }
  208. IL_1DF:
  209. if (flag)
  210. {
  211. list.value = ((!flag2) ? text3 : text2);
  212. break;
  213. }
  214. continue;
  215. goto IL_1DF;
  216. }
  217. }
  218. private bool IsProductMatch(string text)
  219. {
  220. bool result = false;
  221. switch (DanceSetting.Settings.Product)
  222. {
  223. case Product_Mgr.ProductRank.Low:
  224. result = (text == "下位");
  225. break;
  226. case Product_Mgr.ProductRank.Special:
  227. result = (text == "上位");
  228. break;
  229. case Product_Mgr.ProductRank.Normal:
  230. result = (text == "通常");
  231. break;
  232. }
  233. return result;
  234. }
  235. private bool IsAudienceMatch(string text)
  236. {
  237. bool result = false;
  238. switch (DanceSetting.Settings.Audience)
  239. {
  240. case Product_Mgr.AudienceState.Few:
  241. result = (text == "小");
  242. break;
  243. case Product_Mgr.AudienceState.Normal:
  244. result = (text == "中");
  245. break;
  246. case Product_Mgr.AudienceState.Many:
  247. result = (text == "大");
  248. break;
  249. }
  250. return result;
  251. }
  252. private bool IsSettingOn(string text, bool condition)
  253. {
  254. if (condition)
  255. {
  256. return text == "ON";
  257. }
  258. return text == "OFF";
  259. }
  260. private bool IsVoltageMatch(string text)
  261. {
  262. int num = 0;
  263. if (int.TryParse(text, out num))
  264. {
  265. return DanceSetting.Settings.Voltage == num;
  266. }
  267. if (text == "普通")
  268. {
  269. return DanceSetting.Settings.Voltage == 3;
  270. }
  271. return text == "難しい" && DanceSetting.Settings.Voltage == 4;
  272. }
  273. private bool IsCutinMatch(string text)
  274. {
  275. return DanceSetting.Settings.CutInGrade == Appeal_Mgr.ParseGrade(text);
  276. }
  277. private bool IsTimingMatch(string text)
  278. {
  279. return DanceSetting.Settings.NoteOccurTiming.ToString() == text.Replace("+", string.Empty).Replace("秒", string.Empty);
  280. }
  281. private bool IsEffectLigthtMatch(string text)
  282. {
  283. if (text == "軽量")
  284. {
  285. return DanceSetting.Settings.IsNoteEffectLight;
  286. }
  287. return !DanceSetting.Settings.IsNoteEffectLight;
  288. }
  289. private bool IsUndressFaceMatch(string text)
  290. {
  291. if (text == "通常")
  292. {
  293. return DanceSetting.Settings.UndressFaceOn;
  294. }
  295. return !DanceSetting.Settings.UndressFaceOn;
  296. }
  297. private bool IsJudgeTimingMatch(string text)
  298. {
  299. return DanceSetting.Settings.NoteJudgeTiming == float.Parse(text.Replace("秒", string.Empty));
  300. }
  301. private void OnDestroy()
  302. {
  303. using (FileStream fileStream = new FileStream(Path.GetFullPath(".\\dance_setting_br.dat"), FileMode.Create, FileAccess.Write))
  304. {
  305. BinaryFormatter binaryFormatter = new BinaryFormatter();
  306. binaryFormatter.Serialize(fileStream, "@Dance_Setting");
  307. binaryFormatter.Serialize(fileStream, string.Format("Ver:{0}", 1.7f));
  308. binaryFormatter.Serialize(fileStream, DanceSetting.Settings);
  309. fileStream.Close();
  310. }
  311. DanceSetting.m_IsFileExist = true;
  312. }
  313. private void SwitchFlag(string value_text, ref bool swtch_flag)
  314. {
  315. if (value_text != null)
  316. {
  317. if (!(value_text == "ON"))
  318. {
  319. if (value_text == "OFF")
  320. {
  321. swtch_flag = false;
  322. }
  323. }
  324. else
  325. {
  326. swtch_flag = true;
  327. }
  328. }
  329. }
  330. private void SetProduct(string value_text)
  331. {
  332. Product_Mgr.ProductRank product = Product_Mgr.ProductRank.Low;
  333. if (value_text != null)
  334. {
  335. if (!(value_text == "下位"))
  336. {
  337. if (!(value_text == "通常"))
  338. {
  339. if (value_text == "上位")
  340. {
  341. product = Product_Mgr.ProductRank.Special;
  342. }
  343. }
  344. else
  345. {
  346. product = Product_Mgr.ProductRank.Normal;
  347. }
  348. }
  349. else
  350. {
  351. product = Product_Mgr.ProductRank.Low;
  352. }
  353. }
  354. DanceSetting.Settings.Product = product;
  355. }
  356. private void SetAudience(string value_text)
  357. {
  358. Product_Mgr.AudienceState audience = Product_Mgr.AudienceState.Normal;
  359. if (value_text != null)
  360. {
  361. if (!(value_text == "小"))
  362. {
  363. if (!(value_text == "中"))
  364. {
  365. if (value_text == "大")
  366. {
  367. audience = Product_Mgr.AudienceState.Many;
  368. }
  369. }
  370. else
  371. {
  372. audience = Product_Mgr.AudienceState.Normal;
  373. }
  374. }
  375. else
  376. {
  377. audience = Product_Mgr.AudienceState.Few;
  378. }
  379. }
  380. DanceSetting.Settings.Audience = audience;
  381. }
  382. private void SetVoltage(string value_text)
  383. {
  384. int voltage = 0;
  385. if (int.TryParse(value_text, out voltage))
  386. {
  387. DanceSetting.Settings.Voltage = voltage;
  388. }
  389. else if (value_text != null)
  390. {
  391. if (!(value_text == "普通"))
  392. {
  393. if (value_text == "難しい")
  394. {
  395. DanceSetting.Settings.Voltage = 4;
  396. }
  397. }
  398. else
  399. {
  400. DanceSetting.Settings.Voltage = 3;
  401. }
  402. }
  403. }
  404. private void SetCutInGrade(string value_text)
  405. {
  406. DanceSetting.Settings.CutInGrade = Appeal_Mgr.ParseGrade(value_text);
  407. }
  408. private void SetNoteTiming(string value_text)
  409. {
  410. DanceSetting.Settings.NoteOccurTiming = int.Parse(value_text.Replace("+", string.Empty));
  411. }
  412. private void SetEffectLight(string value_text)
  413. {
  414. if (value_text != null)
  415. {
  416. if (!(value_text == "通常"))
  417. {
  418. if (value_text == "軽量")
  419. {
  420. DanceSetting.Settings.IsNoteEffectLight = true;
  421. }
  422. }
  423. else
  424. {
  425. DanceSetting.Settings.IsNoteEffectLight = false;
  426. }
  427. }
  428. }
  429. private void SetUndressFace(string value_text)
  430. {
  431. if (value_text != null)
  432. {
  433. if (!(value_text == "通常"))
  434. {
  435. if (value_text == "我慢")
  436. {
  437. DanceSetting.Settings.UndressFaceOn = false;
  438. }
  439. }
  440. else
  441. {
  442. DanceSetting.Settings.UndressFaceOn = true;
  443. }
  444. }
  445. }
  446. private void SetJudgeTiming(string value_text)
  447. {
  448. DanceSetting.Settings.NoteJudgeTiming = float.Parse(value_text);
  449. }
  450. private void ValueSetting()
  451. {
  452. string text = UIPopupList.current.value.Replace("\r", string.Empty);
  453. string text2 = text;
  454. bool isLocalized = UIPopupList.current.isLocalized;
  455. if (isLocalized)
  456. {
  457. string[] array = text2.Split(new char[]
  458. {
  459. '/'
  460. });
  461. if (array != null && 1 < array.Length)
  462. {
  463. text2 = array[array.Length - 1];
  464. }
  465. }
  466. DanceSetting.UIInspectorSetting uiinspectorSetting = this.m_SettingList.SingleOrDefault((DanceSetting.UIInspectorSetting e) => e.PopUpUI == UIPopupList.current);
  467. if (uiinspectorSetting == null)
  468. {
  469. return;
  470. }
  471. switch (uiinspectorSetting.MyType)
  472. {
  473. case DanceSetting.SettingType.Product:
  474. this.SetProduct(text2);
  475. break;
  476. case DanceSetting.SettingType.Audience:
  477. this.SetAudience(text2);
  478. break;
  479. case DanceSetting.SettingType.DepthofField:
  480. this.SwitchFlag(text2, ref DanceSetting.Settings.IsDepthOfFieldOn);
  481. break;
  482. case DanceSetting.SettingType.SePlay:
  483. this.SwitchFlag(text2, ref DanceSetting.Settings.IsSEPlay);
  484. break;
  485. case DanceSetting.SettingType.Voltage:
  486. this.SetVoltage(text2);
  487. break;
  488. case DanceSetting.SettingType.BlackBg:
  489. this.SwitchFlag(text2, ref DanceSetting.Settings.IsblackBGon);
  490. break;
  491. case DanceSetting.SettingType.NoteEffect:
  492. this.SetEffectLight(text2);
  493. break;
  494. case DanceSetting.SettingType.NoteTiming:
  495. this.SetNoteTiming(text2);
  496. break;
  497. case DanceSetting.SettingType.JudgeTiming:
  498. this.SetJudgeTiming(text2);
  499. break;
  500. case DanceSetting.SettingType.FpsCam:
  501. this.SwitchFlag(text2, ref DanceSetting.Settings.FPSCamMode);
  502. break;
  503. case DanceSetting.SettingType.Cutin:
  504. this.SetCutInGrade(text2);
  505. break;
  506. case DanceSetting.SettingType.Undress:
  507. this.SetUndressFace(text2);
  508. break;
  509. case DanceSetting.SettingType.Subtitle:
  510. this.SwitchFlag(text2, ref DanceSetting.Settings.IsSubtitleOn);
  511. break;
  512. }
  513. if (this.m_SettingUIList[UIPopupList.current].Label)
  514. {
  515. if (isLocalized && this.m_SettingUIList[UIPopupList.current].localize != null)
  516. {
  517. this.m_IsSettingChange = (this.m_SettingUIList[UIPopupList.current].localize.Term != text);
  518. this.m_SettingUIList[UIPopupList.current].localize.SetTerm(text);
  519. }
  520. else
  521. {
  522. this.m_IsSettingChange = (this.m_SettingUIList[UIPopupList.current].Label.text != text);
  523. this.m_SettingUIList[UIPopupList.current].Label.text = text;
  524. }
  525. }
  526. }
  527. public void DisSelectable()
  528. {
  529. foreach (KeyValuePair<UIPopupList, DanceSetting.NeedData> keyValuePair in this.m_SettingUIList)
  530. {
  531. if (keyValuePair.Value.Collider)
  532. {
  533. keyValuePair.Value.Collider.enabled = false;
  534. }
  535. }
  536. }
  537. public void SetUIMode(string mode = "")
  538. {
  539. RhythmAction_Mgr.DanceType nowDance = RhythmAction_Mgr.NowDance;
  540. if (nowDance != RhythmAction_Mgr.DanceType.Challenge)
  541. {
  542. if (nowDance != RhythmAction_Mgr.DanceType.VS)
  543. {
  544. if (mode.IndexOf("モード") >= 0)
  545. {
  546. this.m_ModeLabel.text = mode + "設定";
  547. }
  548. else
  549. {
  550. this.m_ModeLabel.text = mode + "モード設定";
  551. }
  552. }
  553. else
  554. {
  555. this.m_ModeLabel.text = "VSダンス設定";
  556. }
  557. }
  558. else
  559. {
  560. this.m_ModeLabel.text = "ダンスショー設定";
  561. }
  562. Localize component = this.m_ModeLabel.GetComponent<Localize>();
  563. if (component != null)
  564. {
  565. component.SetTerm("SceneDanceSelect/" + this.m_ModeLabel.text);
  566. }
  567. int num = 0;
  568. foreach (DanceSetting.UIInspectorSetting uiinspectorSetting in this.m_SettingList)
  569. {
  570. GameObject gameObject = uiinspectorSetting.PopUpUI.transform.parent.gameObject;
  571. bool flag = uiinspectorSetting.OnDanceList.Contains(RhythmAction_Mgr.NowDance);
  572. if (GameMain.Instance.VRMode)
  573. {
  574. flag &= uiinspectorSetting.UseVR;
  575. }
  576. if (uiinspectorSetting.MyType == DanceSetting.SettingType.Subtitle)
  577. {
  578. flag = false;
  579. }
  580. gameObject.SetActive(flag);
  581. if (flag)
  582. {
  583. gameObject.transform.localPosition = Vector3.up * (this.m_FirstUIposY - this.m_UISetInterval * (float)num);
  584. num++;
  585. }
  586. }
  587. this.m_SettingUIBg.height = this.m_OrijinBgheight + num * Mathf.FloorToInt(this.m_UISetInterval);
  588. }
  589. private const string m_SettingHeader = "@Dance_Setting";
  590. private const float m_SettingVer = 1.7f;
  591. [SerializeField]
  592. [Header("設定項目設置間隔")]
  593. private float m_UISetInterval;
  594. [SerializeField]
  595. private float m_FirstUIposY;
  596. [SerializeField]
  597. [Header("ポップアップ表示オフセット")]
  598. private float m_PopUpOffset = 27.47f;
  599. [SerializeField]
  600. [Header("ボタンUIグループ")]
  601. private Transform m_ButtonGroup;
  602. [SerializeField]
  603. private UILabel m_ModeLabel;
  604. private Dictionary<UIPopupList, DanceSetting.NeedData> m_SettingUIList = new Dictionary<UIPopupList, DanceSetting.NeedData>();
  605. [SerializeField]
  606. [Header("各UI設定")]
  607. private List<DanceSetting.UIInspectorSetting> m_SettingList = new List<DanceSetting.UIInspectorSetting>
  608. {
  609. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Product),
  610. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Audience),
  611. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.DepthofField),
  612. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.SePlay),
  613. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Voltage),
  614. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.BlackBg),
  615. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.NoteEffect),
  616. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.NoteTiming),
  617. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.JudgeTiming),
  618. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.FpsCam),
  619. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Cutin),
  620. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Undress),
  621. new DanceSetting.UIInspectorSetting(DanceSetting.SettingType.Subtitle)
  622. };
  623. private bool m_IsSettingChange;
  624. [SerializeField]
  625. [Header("設定UI背景")]
  626. private UISprite m_SettingUIBg;
  627. private int m_OrijinBgheight;
  628. public static SettingData Settings = new SettingData();
  629. private static bool m_IsFileExist = false;
  630. private static bool m_IsFileCheck = false;
  631. private class NeedData
  632. {
  633. public UILabel Label;
  634. public Localize localize;
  635. public UIButton Button;
  636. public BoxCollider Collider;
  637. public string DefoValue;
  638. }
  639. public enum SettingType
  640. {
  641. Product,
  642. Audience,
  643. DepthofField,
  644. SePlay,
  645. Voltage,
  646. BlackBg,
  647. NoteEffect,
  648. NoteTiming,
  649. JudgeTiming,
  650. FpsCam,
  651. Cutin,
  652. Undress,
  653. AllRelease,
  654. Subtitle
  655. }
  656. [Serializable]
  657. private class UIInspectorSetting
  658. {
  659. public UIInspectorSetting(DanceSetting.SettingType type)
  660. {
  661. this.MyType = type;
  662. }
  663. public DanceSetting.SettingType MyType;
  664. public UIPopupList PopUpUI;
  665. public List<RhythmAction_Mgr.DanceType> OnDanceList = new List<RhythmAction_Mgr.DanceType>();
  666. public bool UsePublic = true;
  667. public bool UseVR = true;
  668. }
  669. }