private void MultyParty() { GameWebAPI.WD_Req_DngStart last_dng_req = DataMng.Instance().GetResultUtilData().last_dng_req; GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM[] worldDungeonM = MasterDataMng.Instance().RespDataMA_WorldDungeonM.worldDungeonM; int dungeonID = int.Parse(last_dng_req.dungeonId); GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM masterDungeon = worldDungeonM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM x) => x.worldDungeonId == dungeonID.ToString()); GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM[] worldStageM = MasterDataMng.Instance().RespDataMA_WorldStageM.worldStageM; GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM worldStageM2 = worldStageM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM x) => x.worldStageId == masterDungeon.worldStageId); CMD_PartyEdit.replayMultiStageId = worldStageM2.worldStageId; CMD_PartyEdit.replayMultiDungeonId = last_dng_req.dungeonId; CMD_PartyEdit.ModeType = CMD_PartyEdit.MODE_TYPE.MULTI; CMD_PartyEdit partyEdit = GUIMain.ShowCommonDialog(null, "CMD_PartyEdit", new Action <CommonDialog>(this.OnReadyPartyEdit)) as CMD_PartyEdit; partyEdit.PartsTitle.SetReturnAct(delegate(int i) { partyEdit.ClosePanel(true); }); partyEdit.PartsTitle.DisableReturnBtn(false); partyEdit.PartsTitle.SetCloseAct(delegate(int i) { this.< ClosePanel > __BaseCallProxy0(false); partyEdit.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); partyEdit.ClosePanel(true); }); }
private void ActMIconLong(MonsterData md) { CMD_CharacterDetailed.DataChg = md; CMD_CharacterDetailed dl = GUIMain.ShowCommonDialog(delegate(int i) { GUIMonsterIcon icon = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(md); icon.Lock = md.userMonster.IsLocked; }, "CMD_CharacterDetailed", null) as CMD_CharacterDetailed; dl.DisableEvolutionButton(); if (null != CMD_MultiRecruitPartyWait.Instance) { dl.PartsTitle.DisableCloseBtn(true); } CMD_BattleNextChoice battleNextChoice = UnityEngine.Object.FindObjectOfType <CMD_BattleNextChoice>(); if (null != battleNextChoice) { dl.PartsTitle.SetCloseAct(delegate(int i) { battleNextChoice.ClosePanel(false); CMD_PartyEdit.instance.ClosePanel(false); CMD_DeckList.instance.ClosePanel(false); dl.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); dl.ClosePanel(true); }); } }
private void OnCloseMultiBattleMenu(int idx) { switch (idx) { case 1: { GameWebAPI.WD_Req_DngStart lastDngReq = DataMng.Instance().GetResultUtilData().GetLastDngReq(); CMD_MultiRecruitTop cmd1 = CMD_MultiRecruitTop.CreateTargetStage(lastDngReq.dungeonId); cmd1.PartsTitle.SetReturnAct(delegate(int i) { cmd1.ClosePanel(true); }); cmd1.PartsTitle.DisableReturnBtn(false); cmd1.PartsTitle.SetCloseAct(delegate(int i) { this.< ClosePanel > __BaseCallProxy0(false); cmd1.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); cmd1.ClosePanel(true); }); break; } case 2: { NextChoiceReplay nextChoiceReplay = new NextChoiceReplay(new Action(this.MultyParty)); nextChoiceReplay.Start(); break; } } }
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); } } }
private void OnCloseConfirmShop(int selectButtonIndex) { if (selectButtonIndex == 0) { this.shopBeforeStoneNum = DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point; CMD_Shop cmd = GUIMain.ShowCommonDialog(null, "CMD_Shop", null) as CMD_Shop; cmd.PartsTitle.SetReturnAct(delegate(int _i_) { cmd.SetCloseAction(delegate(int x) { this.EndShop(0); }); cmd.ClosePanel(true); }); cmd.PartsTitle.DisableReturnBtn(false); cmd.PartsTitle.SetCloseAct(delegate(int _i_) { GameObject dialog = GUIManager.GetDialog("CMD_BattleNextChoice"); if (dialog != null) { CMD_BattleNextChoice component = dialog.GetComponent <CMD_BattleNextChoice>(); component.ClosePanel(false); } cmd.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); cmd.ClosePanel(true); }); } }
private void OnPushedFarmButton() { base.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); base.ClosePanel(true); }
private void ReceivedDungeonStart() { Loading.DisableMask(); TipsLoading.Instance.StartTipsLoad(CMD_Tips.DISPLAY_PLACE.QuestToSoloBattle, true); CMD_BattleNextChoice component = GameObject.Find("CMD_BattleNextChoice").GetComponent <CMD_BattleNextChoice>(); component.SetCloseAction(delegate(int noop) { DataMng.Instance().WD_ReqDngResult.clear = 0; BattleStateManager.StartSingle(0.5f, 0.5f, true, null); }); component.ClosePanel(true); }
private IEnumerator OpenBattleNextChoice() { RestrictionInput.StartLoad(RestrictionInput.LoadType.SMALL_IMAGE_MASK_ON); APIRequestTask task = Singleton <UserDataMng> .Instance.RequestPlayerInfo(true); return(task.Run(delegate { RestrictionInput.EndLoad(); CMD_BattleNextChoice cmd_BattleNextChoice = GUIMain.ShowCommonDialog(null, "CMD_BattleNextChoice", null) as CMD_BattleNextChoice; cmd_BattleNextChoice.screenResult = this; }, delegate(Exception e) { RestrictionInput.EndLoad(); }, null)); }
public virtual void OnTapedMonster() { if (this.selectPanelLR != null) { if (!this.selectPanelLR.IsStopRev()) { return; } this.selectPanelLR.SetScrollSpeed(0f); } CMD_DeckList.SelectMonsterData = this.Data; CMD_DeckList dl = GUIMain.ShowCommonDialog(delegate(int i) { if (this.guiListPartsPartyEdit != null) { this.guiListPartsPartyEdit.OnChanged(); } }, "CMD_DeckList", new Action <CommonDialog>(this.OnReadyDeckList)) as CMD_DeckList; dl.PPMI_Instance = this; CMD_BattleNextChoice battleNextChoice = UnityEngine.Object.FindObjectOfType <CMD_BattleNextChoice>(); if (battleNextChoice != null) { dl.PartsTitle.SetCloseAct(delegate(int i) { battleNextChoice.ClosePanel(false); CMD_PartyEdit.instance.ClosePanel(false); dl.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); dl.ClosePanel(true); }); } dl.SetSortieLimit(this.guiListPartsPartyEdit.partyEdit.GetWorldSortieLimit()); GUIListPartsPartyEdit guilistPartsPartyEdit = this.guiListPartsPartyEdit; dl.ppmiList = guilistPartsPartyEdit.ppmiList; this.HideStatusPanel(); }
private static void OnFinishedFadeoutEventStage() { Loading.DisableMask(); TipsLoading.Instance.StartTipsLoad(CMD_Tips.DISPLAY_PLACE.QuestToSoloBattle, true); if (null != CMD_QuestTOP.instance) { CMD_QuestTOP.instance.isGoingBattle = true; CMD_QuestTOP.instance.ClosePanel(true); } else { CMD_BattleNextChoice cmd_BattleNextChoice = UnityEngine.Object.FindObjectOfType <CMD_BattleNextChoice>(); if (null != cmd_BattleNextChoice) { cmd_BattleNextChoice.ClosePanel(true); } } GUIMain.ReqScreen("UIIdle", string.Empty); SceneController.DeleteCurrentScene(); ClassSingleton <AdventureSceneController> .Instance.Start(); }
private void AfterGetDungeonInfo(bool success) { RestrictionInput.EndLoad(); if (success) { CMD_MultiRecruitTop window = CMD_MultiRecruitTop.Create(); window.PartsTitle.SetReturnAct(delegate(int i) { window.ClosePanel(true); }); window.PartsTitle.DisableReturnBtn(false); window.PartsTitle.SetCloseAct(delegate(int i) { this.parentWindow.ClosePanel(false); window.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); window.ClosePanel(true); }); } }
private void OnPushedAgainCallBack() { ClassSingleton <PlayLimit> .Instance.ClearTicketNumCont(); ClassSingleton <PlayLimit> .Instance.ClearPlayLimitNumCont(); GameWebAPI.WD_Req_DngStart last_dng_req = DataMng.Instance().GetResultUtilData().last_dng_req; GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM[] worldDungeonM = MasterDataMng.Instance().RespDataMA_WorldDungeonM.worldDungeonM; int dungeonID = int.Parse(last_dng_req.dungeonId); GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM masterDungeon = worldDungeonM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldDungeonM.WorldDungeonM x) => x.worldDungeonId == dungeonID.ToString()); GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM[] worldStageM = MasterDataMng.Instance().RespDataMA_WorldStageM.worldStageM; GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM worldStageM2 = worldStageM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM x) => x.worldStageId == masterDungeon.worldStageId); if (QuestData.IsTicketQuest(worldStageM2.worldAreaId)) { if (this.isMulti && "-1" == last_dng_req.userDungeonTicketId) { CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("TicketQuestTitle"); cmd_ModalMessage.Info = StringMaster.GetString("MultiParticipateAgainAlert"); return; } GameWebAPI.RespDataWD_GetDungeonInfo.Dungeons dng = ClassSingleton <QuestData> .Instance.GetTicketQuestDungeonByTicketID(last_dng_req.userDungeonTicketId); int num = int.Parse(dng.dungeonTicketNum); if (0 >= num) { CMD_ModalMessage cmd_ModalMessage2 = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage2.Title = StringMaster.GetString("TicketQuestTitle"); cmd_ModalMessage2.Info = StringMaster.GetString("QuestPlayLimitZeroInfo"); } else { CMD_Confirm cmd_Confirm = GUIMain.ShowCommonDialog(delegate(int idx) { if (idx == 0) { ClassSingleton <PlayLimit> .Instance.SetTicketNumCont(dng, ConstValue.PLAYLIMIT_USE_COUNT); if (this.isMulti) { this.RequestDungeonStart(); } else { NextChoiceReplay nextChoiceReplay2 = new NextChoiceReplay(new Action(this.RequestDungeonStart)); nextChoiceReplay2.Start(); } } }, "CMD_Confirm", null) as CMD_Confirm; cmd_Confirm.Title = StringMaster.GetString("TicketQuestTitle"); cmd_Confirm.Info = string.Format(StringMaster.GetString("TicketQuestConfirmInfo"), worldStageM2.name, num, num - 1); cmd_Confirm.BtnTextYes = StringMaster.GetString("SystemButtonYes"); cmd_Confirm.BtnTextNo = StringMaster.GetString("SystemButtonClose"); } } else { GameWebAPI.RespDataWD_GetDungeonInfo dngeonInfoByWorldAreaId = ClassSingleton <QuestData> .Instance.GetDngeonInfoByWorldAreaId(worldStageM2.worldAreaId); List <QuestData.WorldDungeonData> wdd = ClassSingleton <QuestData> .Instance.GetWorldDungeonData_ByAreaIdStageId(worldStageM2.worldAreaId, masterDungeon.worldStageId, dngeonInfoByWorldAreaId, 0, false, true); if (wdd == null) { CMD_ModalMessage cmd_ModalMessage3 = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage3.Title = StringMaster.GetString("MultiAgainAlertYetClearTitle"); cmd_ModalMessage3.Info = StringMaster.GetString("MultiAgainAlertYetClearInfo"); return; } int worldDungeonDataIndex = 0; for (int i = 0; i < wdd.Count; i++) { if (wdd[i].dungeon.worldDungeonId.ToString() == masterDungeon.worldDungeonId) { worldDungeonDataIndex = i; break; } } if (worldDungeonDataIndex < wdd.Count) { int usedCT = ConstValue.PLAYLIMIT_USE_COUNT; if (this.isMulti && "-1" == last_dng_req.userDungeonTicketId) { usedCT = 0; } bool flag = ClassSingleton <QuestData> .Instance.IsEmptyDng(wdd[worldDungeonDataIndex].dungeon, worldStageM2.worldAreaId); if (flag) { CMD_ModalMessage cmd_ModalMessage4 = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage4.Title = StringMaster.GetString("QuestPlayLimitTitle"); cmd_ModalMessage4.Info = StringMaster.GetString("QuestPlayLimitZeroInfo"); return; } if (!ClassSingleton <PlayLimit> .Instance.PlayLimitCheck(wdd[worldDungeonDataIndex].dungeon, delegate(int idx) { if (idx == 0) { if (wdd[worldDungeonDataIndex].dungeon.playLimit.recoveryAssetCategoryId == 2) { CMD_Shop cmd = GUIMain.ShowCommonDialog(delegate(int _idx) { }, "CMD_Shop", null) as CMD_Shop; cmd.PartsTitle.SetReturnAct(delegate(int _i_) { cmd.ClosePanel(true); }); cmd.PartsTitle.DisableReturnBtn(false); cmd.PartsTitle.SetCloseAct(delegate(int _i_) { this.< ClosePanel > __BaseCallProxy0(false); cmd.SetCloseAction(delegate(int x) { CMD_BattleNextChoice.GoToFarm(); }); cmd.ClosePanel(true); }); } else if (wdd[worldDungeonDataIndex].dungeon.playLimit.recoveryAssetCategoryId == 6) { GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(wdd[worldDungeonDataIndex].dungeon.playLimit.recoveryAssetValue.ToString()); CMD_ModalMessage cmd_ModalMessage6 = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage6.Title = string.Format(StringMaster.GetString("SystemShortage"), itemM.name); cmd_ModalMessage6.Info = string.Format(StringMaster.GetString("QuestPlayLimitItemShortInfo"), itemM.name); } } }, delegate(int _idx) { ClassSingleton <PlayLimit> .Instance.RecoverPlayLimit(wdd[worldDungeonDataIndex].dungeon, new Action <GameWebAPI.RespDataWD_GetDungeonInfo.Dungeons>(this.OnSuccessedRecoverPlayLimit)); }, usedCT)) { return; } if (this.isMulti) { this.RequestDungeonStart(); } else { NextChoiceReplay nextChoiceReplay = new NextChoiceReplay(new Action(this.RequestDungeonStart)); nextChoiceReplay.Start(); } } else { CMD_ModalMessage cmd_ModalMessage5 = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage5.Title = StringMaster.GetString("MultiAgainAlertYetClearTitle"); cmd_ModalMessage5.Info = StringMaster.GetString("MultiAgainAlertYetClearInfo"); } } }