private void OnResponseQuestInfo(bool isSuccess) { if (isSuccess) { this.GetCampaignDataFromServer(delegate { if (this.questUITypeBackup == 0) { this.PartsMenuShowDialog(null, "CMD_QuestSelect"); } else if (this.questUITypeBackup == 1) { RestrictionInput.EndLoad(); CMD_QuestTOP.AreaData = ClassSingleton <QuestData> .Instance.GetWorldAreaM_NormalByAreaId("8"); CMD cmd = this.PartsMenuShowDialog(null, "CMD_QuestTOP") as CMD; if (null != cmd.PartsTitle) { cmd.PartsTitle.SetReturnAct(delegate(int idx) { cmd.SetCloseAction(delegate(int i) { this.PartsMenuShowDialog(null, "CMD_QuestSelect"); }); cmd.ClosePanel(true); }); } } }); } else { RestrictionInput.EndLoad(); } }
private void OnTouchEndedProcess() { if (this.areaData.data.worldAreaId == "5") { GUIMain.ShowCommonDialog(null, "CMD_PvPTop", null); } else { CMD_QuestTOP.AreaData = this.areaData; if (GUIMain.GetNowGUIName() == "UIResult") { CMD cmd = GUIMain.ShowCommonDialog(delegate(int idx) { CMD_BattleNextChoice.OnCloseQuestTOP(idx); }, "CMD_QuestTOP", null) as CMD; cmd.SetForceReturnValue(1); PartsTitleBase partsTitle = cmd.PartsTitle; if (partsTitle != null) { partsTitle.SetReturnAct(delegate(int i) { cmd.SetCloseAction(null); cmd.ClosePanel(true); }); } } else { GUIMain.ShowCommonDialog(null, "CMD_QuestTOP", null); } } }
public override void SetParamToCMD() { CMD cs = base.FindParentCMD(); if (cs != null) { Dictionary <string, CommonDialog> dialogDic = GUIManager.GetDialogDic(); cs.PartsTitle = this; cs.CanClosePanelRecursive = true; base.DisableCMD_CallBack(this.myTransform); int num = 0; foreach (string key in dialogDic.Keys) { CMD cmd = (CMD)dialogDic[key]; if (cmd != null && cmd.useCMDAnim) { num++; } } if (num > 0) { this.SetReturnAct(delegate(int i) { cs.ClosePanel(true); }); } this.SetCloseAct(delegate(int i) { if (cs.useCMDAnim) { cs.closeAll(); } else { cs.ClosePanelRecursive = true; cs.ClosePanel(true); } }); } }
private void OnConfirmPushYesButton(UnityEngine.Object popup) { RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); CMD cmd = popup as CMD; if (null != cmd) { cmd.SetWindowClosedAction(delegate { AppCoroutine.Start(this.BuyEventDungeon(), false); }); cmd.ClosePanel(true); } }