SystemShortcut.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. using System;
  2. using System.Collections.Generic;
  3. using I2.Loc;
  4. using UnityEngine;
  5. using UnityEngine.SceneManagement;
  6. public class SystemShortcut : MonoBehaviour
  7. {
  8. private void Awake()
  9. {
  10. this.m_uiCam = base.gameObject.transform.parent.Find("Camera").GetComponent<Camera>();
  11. this.m_uiPanel = base.gameObject.GetComponent<UIPanel>();
  12. this.m_goBase = UTY.GetChildObject(base.gameObject, "Base", false);
  13. this.m_uiBase = this.m_goBase.GetComponent<UISprite>();
  14. this.m_hitArea = this.m_goBase.GetComponent<BoxCollider>();
  15. this.m_goBaseVR = UTY.GetChildObject(base.gameObject, "BaseVR", false);
  16. this.m_uiBaseVR = this.m_goBaseVR.GetComponent<UISprite>();
  17. this.m_goBaseVR.SetActive(false);
  18. this.m_goGear = UTY.GetChildObject(base.gameObject, "Gear", false);
  19. this.m_uiGear = this.m_goGear.GetComponent<UIButton>();
  20. EventDelegate.Add(this.m_uiGear.onClick, new EventDelegate.Callback(this.OnClick_Gear));
  21. this.m_aryDgOnClick[0] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Config));
  22. this.m_aryDgOnClick[1] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Exit));
  23. this.m_aryDgOnClick[2] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Info));
  24. this.m_aryDgOnClick[3] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Ss));
  25. this.m_aryDgOnClick[4] = new EventDelegate(new EventDelegate.Callback(this.OnClick_SsUi));
  26. this.m_aryDgOnClick[5] = new EventDelegate(new EventDelegate.Callback(this.OnClick_ToTitle));
  27. this.m_aryDgOnClick[6] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Shop));
  28. this.m_aryDgOnClick[7] = new EventDelegate(new EventDelegate.Callback(this.OnClick_VRCommHome));
  29. this.m_aryDgOnClick[8] = new EventDelegate(new EventDelegate.Callback(this.OnClick_VRHelp));
  30. this.m_aryDgOnClick[9] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Help));
  31. this.m_aryDgOnClick[10] = new EventDelegate(new EventDelegate.Callback(this.OnClick_VRAvatar));
  32. this.m_aryDgOnClick[11] = new EventDelegate(new EventDelegate.Callback(this.OnClickDictionary));
  33. Dictionary<int, string> dictionary = new Dictionary<int, string>();
  34. dictionary.Add(0, "System/ショートカット/コンフィグ");
  35. dictionary.Add(3, "System/ショートカット/UI無し スクリーンショット");
  36. dictionary.Add(4, "System/ショートカット/UI有り スクリーンショット");
  37. dictionary.Add(6, "System/ショートカット/ショップ");
  38. dictionary.Add(5, "System/ショートカット/タイトルへ");
  39. dictionary.Add(2, "System/ショートカット/ゲーム情報");
  40. dictionary.Add(1, "System/ショートカット/終了");
  41. dictionary.Add(7, "System/ショートカット/エンパイアクラブに帰る");
  42. dictionary.Add(8, "System/ショートカット/VRヘルプ");
  43. dictionary.Add(9, "System/ショートカット/シーンのヘルプ");
  44. dictionary.Add(10, "System/ショートカット/バーチャル アバター スタジオ");
  45. dictionary.Add(11, "System/ショートカット/辞書");
  46. for (int i = 0; i < this.m_aryObjPath.Length; i++)
  47. {
  48. this.m_goBtn[i] = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[i], false);
  49. this.m_uiBtn[i] = this.m_goBtn[i].GetComponent<UIButton>();
  50. EventDelegate.Add(this.m_uiBtn[i].onClick, this.m_aryDgOnClick[i]);
  51. if (dictionary.ContainsKey(i))
  52. {
  53. UIEventTrigger component = this.m_goBtn[i].GetComponent<UIEventTrigger>();
  54. string text = dictionary[i];
  55. EventDelegate.Add(component.onHoverOver, delegate()
  56. {
  57. this.VisibleExplanation(text, true);
  58. });
  59. EventDelegate.Add(component.onHoverOut, delegate()
  60. {
  61. this.VisibleExplanation(text, false);
  62. });
  63. EventDelegate.Add(component.onDragStart, delegate()
  64. {
  65. this.VisibleExplanation(text, false);
  66. });
  67. }
  68. }
  69. UIWidget uiBaseVR = this.m_uiBaseVR;
  70. Color color = new Color(1f, 1f, 1f, 0f);
  71. this.m_uiBase.color = color;
  72. uiBaseVR.color = color;
  73. this.m_uiGear.defaultColor = new Color(1f, 1f, 1f, 0.3f);
  74. this.m_spriteExplanation = UTY.GetChildObject(base.gameObject, "Explanation", false).GetComponent<UISprite>();
  75. this.m_labelExplanation = UTY.GetChildObject(this.m_spriteExplanation.gameObject, "Value", false).GetComponent<UILabel>();
  76. this.m_spriteExplanation.gameObject.SetActive(false);
  77. this.dicBGSizeType.Add(SystemShortcut.BGSizeType.Long, 380);
  78. this.dicBGSizeType.Add(SystemShortcut.BGSizeType.Short, 340);
  79. int num = 0;
  80. if (Product.type != Product.Type.EnAdult)
  81. {
  82. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[11], false);
  83. if (childObject != null)
  84. {
  85. childObject.SetActive(false);
  86. num++;
  87. }
  88. }
  89. if (GameMain.Instance.CMSystem.NetUse)
  90. {
  91. int num2 = this.dicBGSizeType[SystemShortcut.BGSizeType.Long];
  92. }
  93. else
  94. {
  95. int num2 = this.dicBGSizeType[SystemShortcut.BGSizeType.Short];
  96. GameObject childObject2 = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[6], false);
  97. childObject2.SetActive(false);
  98. num++;
  99. }
  100. this.m_uiBase.width = 420 - num * 40;
  101. Vector2 vector = new Vector2(700f, 110f);
  102. this.m_hitArea.size = new Vector3((float)this.m_uiBase.width + vector.x, (float)this.m_uiBase.height + vector.y, 0f);
  103. Vector3 center = this.m_uiBase.GetComponent<BoxCollider>().center;
  104. center.x += vector.x / 2f;
  105. center.y -= 50f;
  106. this.m_hitArea.center = center;
  107. UTY.GetChildObject(this.m_goBase, "Grid", false).GetComponent<UIGrid>().repositionNow = true;
  108. SceneManager.activeSceneChanged += this.OnActiveSceneChanged;
  109. SceneManager.sceneUnloaded += this.OnSceneUnloaded;
  110. }
  111. private void OnClick_Gear()
  112. {
  113. if (this.m_bEnableBase)
  114. {
  115. this.BaseClose();
  116. }
  117. else if (!this.m_bEnableBase)
  118. {
  119. this.BaseOpen();
  120. }
  121. }
  122. private void BaseClose()
  123. {
  124. if (this.m_bEnableBase)
  125. {
  126. this.m_bEnableBase = false;
  127. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  128. {
  129. "from",
  130. this.m_uiBase.color.a,
  131. "to",
  132. 0f,
  133. "time",
  134. 0.25f,
  135. "onUpdate",
  136. "UpdateBase"
  137. }));
  138. this.m_uiGear.defaultColor = new Color(1f, 1f, 1f, 0.3f);
  139. }
  140. }
  141. private void BaseOpen()
  142. {
  143. if (!this.m_bEnableBase)
  144. {
  145. this.m_bEnableBase = true;
  146. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  147. {
  148. "from",
  149. this.m_uiBase.color.a,
  150. "to",
  151. 1f,
  152. "time",
  153. 0.25f,
  154. "onUpdate",
  155. "UpdateBase"
  156. }));
  157. this.m_uiGear.defaultColor = new Color(1f, 1f, 1f, 1f);
  158. }
  159. }
  160. private void UpdateBase(float f_fValue)
  161. {
  162. UIWidget uiBaseVR = this.m_uiBaseVR;
  163. Color color = new Color(1f, 1f, 1f, f_fValue);
  164. this.m_uiBase.color = color;
  165. uiBaseVR.color = color;
  166. }
  167. private void PanelClose()
  168. {
  169. if (this.m_bEnablePanel)
  170. {
  171. this.m_bEnablePanel = false;
  172. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  173. {
  174. "from",
  175. this.m_uiPanel.alpha,
  176. "to",
  177. 0f,
  178. "time",
  179. 0.25f,
  180. "onUpdate",
  181. "UpdatePanel"
  182. }));
  183. }
  184. }
  185. private void PanelOpen()
  186. {
  187. if (!this.m_bEnablePanel)
  188. {
  189. this.m_bEnablePanel = true;
  190. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  191. {
  192. "from",
  193. this.m_uiPanel.alpha,
  194. "to",
  195. 1f,
  196. "time",
  197. 0.25f,
  198. "onUpdate",
  199. "UpdatePanel"
  200. }));
  201. }
  202. }
  203. private void UpdatePanel(float f_fValue)
  204. {
  205. this.m_uiPanel.alpha = f_fValue;
  206. }
  207. private void OnClick_Config()
  208. {
  209. if (!this.m_bEnablePanel || BaseMgr<ConfigMgr>.Instance.IsOpenConfigPanel())
  210. {
  211. return;
  212. }
  213. BaseMgr<ConfigMgr>.Instance.OpenConfigPanel();
  214. if (ConfigVRCtrl.IsOpen())
  215. {
  216. ConfigVRCtrl.Close(true);
  217. }
  218. this.BaseClose();
  219. }
  220. private void OnClick_Exit()
  221. {
  222. if (!this.m_bEnablePanel)
  223. {
  224. return;
  225. }
  226. GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/終了しますか?", null, SystemDialog.TYPE.OK_CANCEL, new SystemDialog.OnClick(this.OnToEnd), new SystemDialog.OnClick(this.OnCancel));
  227. this.BaseClose();
  228. }
  229. private void OnClick_Info()
  230. {
  231. if (!this.m_bEnablePanel)
  232. {
  233. return;
  234. }
  235. string text = Product.gameTitle;
  236. if (text.IndexOf("It's") != -1)
  237. {
  238. text = text.Replace("It's", "\nIt's");
  239. }
  240. string text2 = "カスタムメイド3D 2";
  241. string text3 = string.Concat(new string[]
  242. {
  243. text,
  244. "\nVersion ",
  245. GameUty.GetGameVersionText(),
  246. " (BuildVersion : ",
  247. GameUty.GetBuildVersionText(),
  248. ")"
  249. });
  250. if (!string.IsNullOrEmpty(GameMain.Instance.CMSystem.CM3D2Path))
  251. {
  252. string text4 = text3;
  253. text3 = string.Concat(new string[]
  254. {
  255. text4,
  256. "\n",
  257. text2,
  258. "\nVersion ",
  259. GameUty.GetLegacyGameVersionText()
  260. });
  261. }
  262. GameMain.Instance.SysDlg.Show(text3, SystemDialog.TYPE.OK, new SystemDialog.OnClick(this.OnCancel), null);
  263. this.BaseClose();
  264. }
  265. private void OnClick_Ss()
  266. {
  267. GameMain.Instance.MainCamera.ScreenShot(true);
  268. }
  269. private void OnClick_SsUi()
  270. {
  271. this.VisibleExplanation(string.Empty, false);
  272. GameMain.Instance.MainCamera.ScreenShot(false);
  273. }
  274. private void OnClick_ToTitle()
  275. {
  276. if (!this.m_bEnablePanel)
  277. {
  278. return;
  279. }
  280. if (Application.loadedLevelName != "SceneTitle")
  281. {
  282. GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/タイトルに戻りますか?", null, SystemDialog.TYPE.OK_CANCEL, new SystemDialog.OnClick(this.OnToTitle), new SystemDialog.OnClick(this.OnCancel));
  283. }
  284. else
  285. {
  286. GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/現在タイトルに戻れません。", null, SystemDialog.TYPE.OK, new SystemDialog.OnClick(this.OnCancel), null);
  287. }
  288. this.BaseClose();
  289. }
  290. private void OnClick_Shop()
  291. {
  292. Application.OpenURL(GameMain.Instance.CMSystem.ShopURL);
  293. }
  294. private void OnClick_VRCommHome()
  295. {
  296. GameMain.Instance.SysDlg.Show("エンパイアクラブに帰りますか?", SystemDialog.TYPE.OK_CANCEL, new SystemDialog.OnClick(this.OnToHome), new SystemDialog.OnClick(this.OnCancel));
  297. this.BaseClose();
  298. }
  299. private void OnToHome()
  300. {
  301. }
  302. private void OnClick_VRHelp()
  303. {
  304. }
  305. private void OnClick_Help()
  306. {
  307. if (!this.m_bEnablePanel)
  308. {
  309. return;
  310. }
  311. if (uGUITutorialPanel.IsOpened())
  312. {
  313. return;
  314. }
  315. string text = this.strSceneHelpName;
  316. if (string.IsNullOrEmpty(text))
  317. {
  318. text = GameMain.Instance.GetNowSceneName();
  319. if (string.IsNullOrEmpty(text))
  320. {
  321. text = SceneManager.GetActiveScene().name;
  322. }
  323. }
  324. if (uGUITutorialPanel.IsExistTutorial(text))
  325. {
  326. uGUITutorialPanel.OpenTutorial(text, null, true);
  327. }
  328. else
  329. {
  330. NDebug.Warning(string.Format("シーン名「{0}」のチュートリアルは存在しません", text));
  331. }
  332. this.BaseClose();
  333. }
  334. private void OnClick_VRAvatar()
  335. {
  336. ControllerShortcutWindow controllerShortcutWindow = OvrIK.CreateUI();
  337. controllerShortcutWindow.Open();
  338. this.BaseClose();
  339. }
  340. private void OnClick_VRConfig()
  341. {
  342. if (!this.m_bEnablePanel)
  343. {
  344. return;
  345. }
  346. if (ConfigVRCtrl.IsOpen())
  347. {
  348. return;
  349. }
  350. ConfigVRCtrl.Open(null);
  351. if (BaseMgr<ConfigMgr>.Instance.IsOpenConfigPanel())
  352. {
  353. BaseMgr<ConfigMgr>.Instance.CloseConfigPanel();
  354. }
  355. this.BaseClose();
  356. }
  357. private void OnClickDictionary()
  358. {
  359. if (!uGUITutorialPanel.IsOpened())
  360. {
  361. uGUITutorialPanel.OpenTutorial("WordDictionary", null, true);
  362. }
  363. }
  364. private void OnToEnd()
  365. {
  366. GameMain.Instance.ToApplicationQuit(true);
  367. }
  368. private void OnToTitle()
  369. {
  370. GameMain.Instance.SysDlg.Close();
  371. GameMain.Instance.LoadScene("SceneToTitle");
  372. GameMain.Instance.MainCamera.FadeOut(0f, false, null, true, default(Color));
  373. }
  374. private void OnCancel()
  375. {
  376. GameMain.Instance.SysDlg.Close();
  377. }
  378. private void Start()
  379. {
  380. this.m_sys = GameMain.Instance.CMSystem;
  381. this.m_bEnablePanel = (this.m_bAlways = this.m_sys.SysButtonShowAlways);
  382. if (this.m_bAlways)
  383. {
  384. this.m_uiPanel.alpha = 1f;
  385. }
  386. else
  387. {
  388. this.m_uiPanel.alpha = 0f;
  389. }
  390. this.SetVRAvatarButtonInteractable();
  391. }
  392. private void Update()
  393. {
  394. if (this.m_sys.SysButtonShowAlways != this.m_bAlways)
  395. {
  396. if (this.m_sys.SysButtonShowAlways)
  397. {
  398. this.m_uiPanel.alpha = 1f;
  399. this.PanelOpen();
  400. }
  401. else
  402. {
  403. this.PanelClose();
  404. }
  405. this.m_bAlways = this.m_sys.SysButtonShowAlways;
  406. }
  407. if (!this.m_bAlways)
  408. {
  409. if (!GameMain.Instance.VRMode)
  410. {
  411. Ray ray = this.m_uiCam.ScreenPointToRay(Input.mousePosition);
  412. RaycastHit raycastHit = default(RaycastHit);
  413. if (this.m_hitArea.Raycast(ray, out raycastHit, 3.40282347E+38f))
  414. {
  415. if (!this.m_bEnablePanel)
  416. {
  417. this.PanelOpen();
  418. }
  419. }
  420. else if (this.m_bEnablePanel)
  421. {
  422. this.PanelClose();
  423. }
  424. }
  425. else
  426. {
  427. Vector3 ovrVirtualMousePos = GameMain.Instance.OvrMgr.SystemUICamera.GetOvrVirtualMousePos(true);
  428. Vector3 ovrVirtualMousePos2 = GameMain.Instance.OvrMgr.SystemUICamera.GetOvrVirtualMousePos(false);
  429. Ray ray2 = this.m_uiCam.ScreenPointToRay(ovrVirtualMousePos);
  430. Ray ray3 = this.m_uiCam.ScreenPointToRay(ovrVirtualMousePos2);
  431. RaycastHit raycastHit2 = default(RaycastHit);
  432. if (this.m_hitArea.Raycast(ray2, out raycastHit2, 3.40282347E+38f) || this.m_hitArea.Raycast(ray3, out raycastHit2, 3.40282347E+38f))
  433. {
  434. if (!this.m_bEnablePanel)
  435. {
  436. this.PanelOpen();
  437. }
  438. }
  439. else if (this.m_bEnablePanel)
  440. {
  441. this.PanelClose();
  442. }
  443. }
  444. }
  445. }
  446. public void VisibleExplanation(string text, bool visible)
  447. {
  448. if (visible)
  449. {
  450. this.m_labelExplanation.text = LocalizationManager.GetTranslation(text, true, 0, true, false, null, null);
  451. this.m_labelExplanation.width = 0;
  452. this.m_labelExplanation.MakePixelPerfect();
  453. UISprite component = this.m_spriteExplanation.GetComponent<UISprite>();
  454. component.width = this.m_labelExplanation.width + 15;
  455. }
  456. this.m_spriteExplanation.gameObject.SetActive(visible);
  457. }
  458. private void OnActiveSceneChanged(Scene beforeScene, Scene activeScene)
  459. {
  460. this.SetHelpButtonInteractable();
  461. uGUITutorialPanel.CloseTutorial(true, false);
  462. this.SetVRAvatarButtonInteractable();
  463. }
  464. private void OnSceneUnloaded(Scene unloadedScene)
  465. {
  466. this.strSceneHelpName = string.Empty;
  467. }
  468. public string strSceneHelpName
  469. {
  470. get
  471. {
  472. return this.m_strSceneHelpName;
  473. }
  474. set
  475. {
  476. if (string.IsNullOrEmpty(value))
  477. {
  478. this.m_strSceneHelpName = string.Empty;
  479. this.SetHelpButtonInteractable();
  480. return;
  481. }
  482. if (!uGUITutorialPanel.IsExistTutorial(value))
  483. {
  484. this.m_strSceneHelpName = string.Empty;
  485. this.SetHelpButtonInteractable();
  486. NDebug.Warning(string.Format("チュートリアル「{0}」は存在しないので、\nシーン名を利用します。", value));
  487. return;
  488. }
  489. this.m_strSceneHelpName = value;
  490. this.SetHelpButtonInteractable();
  491. }
  492. }
  493. private void SetHelpButtonInteractable()
  494. {
  495. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[9], false);
  496. NDebug.Assert(childObject != null, "ヘルプ用ボタンの取得に失敗しました。");
  497. UIButton component = childObject.GetComponent<UIButton>();
  498. string text = this.strSceneHelpName;
  499. if (string.IsNullOrEmpty(text))
  500. {
  501. text = GameMain.Instance.GetNowSceneName();
  502. if (string.IsNullOrEmpty(text))
  503. {
  504. text = SceneManager.GetActiveScene().name;
  505. }
  506. }
  507. if (uGUITutorialPanel.IsExistTutorial(text))
  508. {
  509. component.isEnabled = true;
  510. }
  511. else
  512. {
  513. component.isEnabled = false;
  514. }
  515. }
  516. public bool helpButtonInteractable
  517. {
  518. get
  519. {
  520. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[9], false);
  521. NDebug.Assert(childObject != null, "ヘルプ用ボタンの取得に失敗しました。");
  522. UIButton component = childObject.GetComponent<UIButton>();
  523. return component.isEnabled;
  524. }
  525. set
  526. {
  527. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[9], false);
  528. NDebug.Assert(childObject != null, "ヘルプ用ボタンの取得に失敗しました。");
  529. UIButton component = childObject.GetComponent<UIButton>();
  530. component.isEnabled = value;
  531. }
  532. }
  533. private void SetVRAvatarButtonInteractable()
  534. {
  535. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[10], false);
  536. NDebug.Assert(childObject != null, "VRアバターボタンの取得に失敗しました。");
  537. if (GameMain.Instance == null)
  538. {
  539. return;
  540. }
  541. GameMain.VRDeviceType vrdeviceTypeID = GameMain.Instance.VRDeviceTypeID;
  542. if (vrdeviceTypeID != GameMain.VRDeviceType.VIVE && vrdeviceTypeID != GameMain.VRDeviceType.RIFT_TOUCH)
  543. {
  544. childObject.SetActive(false);
  545. return;
  546. }
  547. string nowSceneName = GameMain.Instance.GetNowSceneName();
  548. if (string.IsNullOrEmpty(nowSceneName) || GameMain.Instance.CMSystem.SConfig.OvrIkAllSceneEnable || nowSceneName == "SceneEdit" || nowSceneName == "ScenePhotoMode" || nowSceneName.IndexOf("SceneDance_") == 0)
  549. {
  550. childObject.SetActive(true);
  551. }
  552. else
  553. {
  554. childObject.SetActive(false);
  555. }
  556. }
  557. private string[] m_aryObjPath = new string[]
  558. {
  559. "Base/Grid/Config",
  560. "Base/Grid/Exit",
  561. "Base/Grid/Info",
  562. "Base/Grid/Ss",
  563. "Base/Grid/SsUi",
  564. "Base/Grid/ToTitle",
  565. "Base/Grid/Shop",
  566. "BaseVR/Grid/VRCommHome",
  567. "BaseVR/Grid/VRHelp",
  568. "Base/Grid/Help",
  569. "Base/VR Avatar",
  570. "Base/Grid/Dic"
  571. };
  572. private UIPanel m_uiPanel;
  573. private BoxCollider m_hitArea;
  574. private GameObject m_goBase;
  575. private UISprite m_uiBase;
  576. private GameObject m_goBaseVR;
  577. private UISprite m_uiBaseVR;
  578. private GameObject m_goGear;
  579. private UIButton m_uiGear;
  580. private GameObject[] m_goBtn = new GameObject[12];
  581. private UIButton[] m_uiBtn = new UIButton[12];
  582. private Camera m_uiCam;
  583. private UISprite m_spriteExplanation;
  584. private UILabel m_labelExplanation;
  585. private bool m_bEnablePanel;
  586. private bool m_bEnableBase;
  587. private Dictionary<SystemShortcut.BGSizeType, int> dicBGSizeType = new Dictionary<SystemShortcut.BGSizeType, int>();
  588. private EventDelegate[] m_aryDgOnClick = new EventDelegate[12];
  589. private bool m_bAlways = true;
  590. private CMSystem m_sys;
  591. private string m_strSceneHelpName = string.Empty;
  592. private enum Btn
  593. {
  594. Config,
  595. Exit,
  596. Info,
  597. Ss,
  598. SsUi,
  599. ToTitle,
  600. Shop,
  601. VRCommHome,
  602. VRHelp,
  603. Help,
  604. VRAvatar,
  605. Dic,
  606. Max
  607. }
  608. private enum BGSizeType
  609. {
  610. Long,
  611. Short
  612. }
  613. }