public virtual void OnActionEvent(string jsonString) { if (this.webWindowOpenWait > 1f) { global::Debug.Log("#=#=# OnActionEvent:jsonString = " + jsonString); CMDWebWindow.WebParam param = JsonMapper.ToObject <CMDWebWindow.WebParam>(jsonString); if (PartsMenu.instance != null) { PartsMenu.instance.ForceHide(true); } this.OpenPageByParam(param); this.webWindowOpenWait = 0f; } }
private void OpenPageByParam(CMDWebWindow.WebParam param) { global::Debug.Log("Tag :" + param.Tag); global::Debug.Log("URL :" + param.Url); string tag = param.Tag; switch (tag) { case "MoveGacha": if (GUIManager.CheckTopDialog("CMD_GashaTOP", null) == null) { this.ClosePanelNotEndShow(true); base.SetCloseAction(delegate(int i) { if (this.callbackAction != null) { this.callbackAction(); } GUIMain.BarrierOFF(); GUIMain.ShowCommonDialog(null, "CMD_GashaTOP", null); }); } this.ClosePanel(true); break; case "MoveQuest": if (CMD_QuestSelect.instance == null) { this.ClosePanelNotEndShow(true); RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); List <string> list = new List <string>(); list.Add("1"); list.Add("3"); list.Add("8"); ClassSingleton <QuestData> .Instance.GetWorldDungeonInfo(list, new Action <bool>(this.actCBQuest)); } else { this.ClosePanel(true); } break; case "MoveExchange": if (GUIManager.CheckTopDialog("CMD_ClearingHouseTOP", null) == null) { this.ClosePanelNotEndShow(true); base.SetCloseAction(delegate(int i) { if (this.callbackAction != null) { this.callbackAction(); } GUIMain.BarrierOFF(); GUIMain.ShowCommonDialog(null, "CMD_ClearingHouseTOP", null); }); } this.ClosePanel(true); break; case "ToggleBGM": this.ToggleBGM(false); break; case "Link": if (base.GetActionStatus() != CommonDialog.ACT_STATUS.CLOSING && base.GetActionStatus() != CommonDialog.ACT_STATUS.CLOSED) { string text = param.Url; text = this.DecodeUrl(text); if (CMDWebWindow.webViewObject != null) { CMDWebWindow.webViewObject.Close(); } this.StartWebView(ConstValue.APP_WEB_DOMAIN + text); } break; case "ExLink": Application.OpenURL(param.Url); break; case "PlayMovie": { this.isMute = false; this.ToggleBGM(true); PlayMovie component = base.GetComponent <PlayMovie>(); component.actionFinishedMovie = new Action <bool>(this.ToggleBGM); NpMovie.TouchFinish = true; NpMovie.SoundEnable = true; NpMovie.ControllerEnabled = false; string path = ConstValue.APP_ASSET_DOMAIN + this.DecodeUrl(param.Url); NpMovie.PlayStreaming(path, base.gameObject, component); break; } } }