private void OnGUI() { if (!needShowGUI) { return; } if (enable) { GUILayout.BeginArea(new Rect(10, gui_start_y, 300, Screen.height)); scene_txt = GUILayout.TextField(scene_txt, GUILayout.Width(150), GUILayout.Height(40)); if (GUILayout.Button("seek", GUILayout.Width(150), GUILayout.Height(40))) { if (!string.IsNullOrEmpty(scene_txt)) { long scene_id; if (long.TryParse(scene_txt, out scene_id)) { //GameIAPModule.Instance.OnTransactionDone.SafeInvoke(ConfCharge.Get(scene_id).desc); CommonHelper.OpenEnterGameSceneUI(scene_id); } } } progresssTex = GUILayout.TextField(progresssTex, GUILayout.Width(150), GUILayout.Height(40)); if (GUILayout.Button("progresssTex", GUILayout.Width(150), GUILayout.Height(40))) { SeekerGame.NewGuid.GuidNewManager.Instance.TestProgressIndex(int.Parse(progresssTex)); } if (GUILayout.Button("SkipCurrentCapter", GUILayout.Width(150), GUILayout.Height(40))) { GameEvents.UIEvents.UI_StartCartoon_Event.OnSkipCurrentCapter.SafeInvoke(); } if (GUILayout.Button("EnterCartoon", GUILayout.Width(150), GUILayout.Height(40))) { FrameMgr.OpenUIParams param = new FrameMgr.OpenUIParams(UIDefine.UI_COMICS_1); param.Param = ConfCartoonScene.Get(40008).sceneInfoIds[0]; EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(param); } buildName = GUILayout.TextField(buildName, GUILayout.Width(150), GUILayout.Height(40)); if (GUILayout.Button("UnLock", GUILayout.Width(150), GUILayout.Height(40))) { GameEvents.BigWorld_Event.OnUnLock.SafeInvoke(buildName); } if (GUILayout.Button("EnterTalk", GUILayout.Width(150), GUILayout.Height(40))) { SceneModule.Instance.EnterExhibitionHallScene(); //PresuadeUILogic.Show(1000); //ReasoningUILogic.ShowReasonUIById(1); //GameEvents.UIEvents.UI_GameEntry_Event.OnNewPoliceEffect.SafeInvoke(true); //TalkUIHelper.OnStartTalk(int.Parse(buildName)); //GameEvents.UIEvents.UI_GameEntry_Event.OnLockMainIcon.SafeInvoke(int.Parse(buildName),true); } if (GUILayout.Button("ShowReasonUIById", GUILayout.Width(150), GUILayout.Height(40))) { ///PresuadeUILogic.Show(1000); ReasoningUILogic.ShowReasonUIById(1); //GameEvents.UIEvents.UI_GameEntry_Event.OnNewPoliceEffect.SafeInvoke(true); //TalkUIHelper.OnStartTalk(int.Parse(buildName)); //GameEvents.UIEvents.UI_GameEntry_Event.OnLockMainIcon.SafeInvoke(int.Parse(buildName),true); } if (GUILayout.Button("SkyeyeUILogic", GUILayout.Width(150), GUILayout.Height(40))) { SkyeyeUILogic.Show(); } GUILayout.EndArea(); } }
private void OnQuit(GameObject obj) { SkyeyeUILogic.Hide(); }