SystemShortcut.cs 17 KB

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