public override void ClosePanel(bool animation = true) { if (this.isGoingBattle) { base.SetForceReturnValue(0); if (CMD_QuestSelect.instance != null) { CMD_QuestSelect.instance.SetForceReturnValue(0); } FarmCameraControlForCMD.On(); base.ClosePanel(false); if (CMD_QuestSelect.instance != null) { CMD_QuestSelect.instance.ClosePanel(false); } } else { SoundMng.Instance().PlayGameBGM("bgm_201"); base.SetForceReturnValue(6); CMD_QuestTOP.AreaData = null; FarmCameraControlForCMD.On(); base.ClosePanel(animation); } if (this.csSelectPanelA_StageL != null) { this.csSelectPanelA_StageL.FadeOutAllListParts(null, false); this.csSelectPanelA_StageL.SetHideScrollBarAllWays(true); } if (this.csSelectPanelS_DungeonR != null) { this.csSelectPanelS_DungeonR.FadeOutAllListParts(null, false); this.csSelectPanelS_DungeonR.SetHideScrollBarAllWays(true); } }
private void OnPushedGardenButton() { FarmCameraControlForCMD.ClearRefCT(); FarmCameraControlForCMD.On(); GUIMain.DestroyAllDialog(null); GUIMain.ShowCommonDialog(null, "CMD_DigiGarden", null); }
public override void ClosePanel(bool animation = true) { if (CMD_MultiRecruitPartyWait.Instance == null) { FarmCameraControlForCMD.On(); } base.ClosePanel(animation); }
private void CloseAction(bool animation) { FarmCameraControlForCMD.On(); base.ClosePanel(animation); this.csSelectPanel.FadeOutAllListParts(null, false); this.csSelectPanel.SetHideScrollBarAllWays(true); this.lbTX_EMPTY.gameObject.SetActive(false); }
public override void ClosePanel(bool animation = true) { FarmCameraControlForCMD.On(); base.ClosePanel(animation); if (this.exchangeList != null) { this.exchangeList.FadeOutAllListParts(null, false); this.exchangeList.SetHideScrollBarAllWays(true); } }
private void Finalize(bool animation) { if (null != CMD_MonsterGashaResult.instance) { CMD_MonsterGashaResult.instance.ClosePanel(true); } SoundMng.Instance().PlayGameBGM("bgm_201"); this.gashaButtonList.FadeOutAllListParts(null, false); GUIPlayerStatus.RefreshParams_S(false); FarmCameraControlForCMD.On(); base.ClosePanel(animation); }
private void OfflineGrow_Step2(MonsterData monsterData) { MonsterClientMaster monsterMaster = monsterData.GetMonsterMaster(); string modelId = monsterMaster.Group.modelId; string growStep = monsterMaster.Group.growStep; string userMonsterId = monsterData.GetMonster().userMonsterId; string monsterEvolutionRouteId = monsterData.GetMonster().monsterEvolutionRouteId; foreach (GameWebAPI.RespDataMA_GetMonsterEvolutionRouteM.MonsterEvolutionRouteM monsterEvolutionRouteM2 in MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM) { if (monsterEvolutionRouteId == monsterEvolutionRouteM2.monsterEvolutionRouteId) { monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(monsterEvolutionRouteM2.growthMonsterId); break; } } MonsterDataMng.Instance().GetMonsterDataList()[0].userMonster.growEndDate = string.Empty; monsterData.userMonster.ex = "0"; monsterData.userMonster.hpAbilityFlg = "0"; monsterData.userMonster.attackAbilityFlg = "0"; monsterData.userMonster.defenseAbilityFlg = "0"; monsterData.userMonster.spAttackAbilityFlg = "0"; monsterData.userMonster.spDefenseAbilityFlg = "0"; monsterData.userMonster.speedAbilityFlg = "0"; monsterData.userMonster.friendship = "0"; StatusValue statusValue = MonsterStatusData.GetStatusValue(monsterData.userMonster.monsterId, monsterData.userMonster.level); statusValue.luck = 1; monsterData.SetStatus(statusValue); monsterData.userMonster.userMonsterId = userMonsterId; ClassSingleton <MonsterUserDataMng> .Instance.UpdateUserMonsterData(monsterData.userMonster); ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList()); monsterData = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterId); monsterMaster = monsterData.GetMonsterMaster(); CutsceneDataEvolution cutsceneDataEvolution = new CutsceneDataEvolution(); cutsceneDataEvolution.path = "Cutscenes/Evolution"; cutsceneDataEvolution.beforeModelId = modelId; cutsceneDataEvolution.beforeGrowStep = growStep; cutsceneDataEvolution.afterModelId = monsterMaster.Group.modelId; cutsceneDataEvolution.afterGrowStep = monsterMaster.Group.growStep; cutsceneDataEvolution.endCallback = delegate() { FarmCameraControlForCMD.On(); CutSceneMain.FadeReqCutSceneEnd(); }; CutsceneDataEvolution cutsceneData = cutsceneDataEvolution; this.CallEvolutionCutScene(monsterData, cutsceneData); }
public override void ClosePanel(bool animation = true) { this.csPartGroupParent.FadeOutAllListParts(null, false); if (this.menuWrap.activeSelf) { TweenPosition.Begin(this.menuWrap, 0.2f, new Vector3(-100f, 0f, 0f)); } if (CMD_MultiRecruitPartyWait.Instance == null) { FarmCameraControlForCMD.On(); } base.ClosePanel(animation); }
public override void ClosePanel(bool animation = true) { if (this.hideGUIAction != null) { this.hideGUIAction(); this.hideGUIAction = null; } FarmCameraControlForCMD.On(); base.ClosePanel(animation); if (null != this.productScrollView) { this.productScrollView.FadeOutAllListParts(null, false); this.productScrollView.SetHideScrollBarAllWays(true); } }
private void OnCompleteCloseOperation() { if (Loading.IsShow()) { RestrictionInput.EndLoad(); } FarmCameraControlForCMD.On(); FarmRoot instance = FarmRoot.Instance; if (null != instance && null != instance.DigimonManager) { instance.DigimonManager.RefreshDigimonGameObject(false, null); } this.uiRoot.Close(this.enableCloseAnimation); }
private void OnCloseQuestTOP(int i) { ClassSingleton <QuestData> .Instance.RespDataWD_DungeonResult = null; ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic = null; if (0 >= this.battlePartyDeckNo) { if (GameObject.FindGameObjectWithTag("FarmRoot") == null) { this.DeleteLoading(); } } else { GameWebAPI.WD_Req_DngStart sendData = new GameWebAPI.WD_Req_DngStart { dungeonId = this.StageDataBk.worldDungeonM.worldDungeonId, deckNum = this.battlePartyDeckNo.ToString(), userDungeonTicketId = this.StageDataBk.dungeon.userDungeonTicketId }; GameWebAPI.RequestWD_WorldStart requestWD_WorldStart = new GameWebAPI.RequestWD_WorldStart(); requestWD_WorldStart.SetSendData = delegate(GameWebAPI.WD_Req_DngStart param) { param.dungeonId = sendData.dungeonId; param.deckNum = sendData.deckNum; param.userDungeonTicketId = sendData.userDungeonTicketId; }; requestWD_WorldStart.OnReceived = delegate(GameWebAPI.RespDataWD_DungeonStart response) { ClassSingleton <QuestData> .Instance.RespDataWD_DungeonStart = response; }; GameWebAPI.RequestWD_WorldStart request = requestWD_WorldStart; AppCoroutine.Start(request.RunOneTime(delegate() { if (null != DataMng.Instance() && DataMng.Instance().WD_ReqDngResult != null) { DataMng.Instance().WD_ReqDngResult.dungeonId = sendData.dungeonId; } DataMng.Instance().GetResultUtilData().last_dng_req = sendData; this.StartCoroutine(this.EndDungeonStartWait()); }, delegate(Exception noop) { this.DeleteLoading(); FarmCameraControlForCMD.On(); GUIManager.CloseAllCommonDialog(null); }, null), false); } }
public override void ClosePanel(bool animation = true) { RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_OFF); if (null == base.gameObject || !base.gameObject.activeSelf) { FarmCameraControlForCMD.On(); base.ClosePanel(animation); RestrictionInput.EndLoad(); } else { APIRequestTask task = DataMng.Instance().RequestMyPageData(false); AppCoroutine.Start(task.Run(delegate { ClassSingleton <FaceMissionAccessor> .Instance.faceMission.SetBadge(true); FarmCameraControlForCMD.On(); this.< ClosePanel > __BaseCallProxy1(animation); RestrictionInput.EndLoad(); }, delegate(Exception nop)
public void ChangeFriendFarmMode(bool isFriendFarmMode, Action callback = null) { if (FarmRoot.Instance.Camera.enabled != isFriendFarmMode) { GUIFace.instance.gameObject.SetActive(!isFriendFarmMode); GUIFaceIndicator.instance.gameObject.SetActive(!isFriendFarmMode); PartsMenu.instance.gameObject.SetActive(!isFriendFarmMode); FarmRoot.Instance.DigimonManager.SetFriendFarmMode(isFriendFarmMode); if (!isFriendFarmMode) { FarmCameraControlForCMD.Off(); GUIManager.ShowBarrier(); } else { FarmCameraControlForCMD.On(); GUIManager.HideBarrier(); } } if (FarmObject_DigiGarden.Instance != null && isFriendFarmMode) { FarmObject_DigiGarden.Instance.DisbledEvolveParticle(); FarmObject_DigiGarden.Instance.SetGrowthPlate(false); } GUIBase gui = GUIManager.GetGUI("UIHome"); if (null != gui) { GUIScreenHome component = gui.GetComponent <GUIScreenHome>(); if (null != component) { component.CloseAllCampaignFacilityIcon(); component.ShowCampaignFacilityIcon(); } } if (callback != null) { callback(); } }
private void EndGrowSuccess(string userMonsterId, string beforeModelId, string beforeGrowStep) { ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList()); MonsterData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterId); MonsterClientMaster monsterMaster = userMonster.GetMonsterMaster(); CutsceneDataEvolution cutsceneDataEvolution = new CutsceneDataEvolution(); cutsceneDataEvolution.path = "Cutscenes/Evolution"; cutsceneDataEvolution.beforeModelId = beforeModelId; cutsceneDataEvolution.beforeGrowStep = beforeGrowStep; cutsceneDataEvolution.afterModelId = monsterMaster.Group.modelId; cutsceneDataEvolution.afterGrowStep = monsterMaster.Group.growStep; cutsceneDataEvolution.endCallback = delegate() { FarmCameraControlForCMD.On(); CutSceneMain.FadeReqCutSceneEnd(); }; CutsceneDataEvolution cutsceneData = cutsceneDataEvolution; Loading.Invisible(); this.CallEvolutionCutScene(userMonster, cutsceneData); }
private void CloseAndFarmCamOn(bool animation) { FarmCameraControlForCMD.On(); base.ClosePanel(animation); }
public override void ClosePanel(bool animation = true) { FarmCameraControlForCMD.On(); base.ClosePanel(animation); }
public override void ClosePanel(bool animation = true) { FarmCameraControlForCMD.On(); CMD_CharacterDetailed.AddButton = CMD_CharacterDetailed.ButtonType.None; base.ClosePanel(animation); }
protected override bool OnCloseStartDialog() { FarmCameraControlForCMD.On(); return(true); }