private void OnPushedGardenButton() { FarmCameraControlForCMD.ClearRefCT(); FarmCameraControlForCMD.On(); GUIMain.DestroyAllDialog(null); GUIMain.ShowCommonDialog(null, "CMD_DigiGarden", null); }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (null != tutorialObserver) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_facility_shop"; if (CMD_FacilityShop.< > f__mg$cache0 == null) { CMD_FacilityShop.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_FacilityShop.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_FacilityShop"); }); } else { GUICollider.EnableAllCollider("CMD_FacilityShop"); } }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); if (CMD_PartyEdit.ModeType == CMD_PartyEdit.MODE_TYPE.EDIT) { TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); TutorialObserver tutorialObserver2 = tutorialObserver; string tutorialName = "second_tutorial_partyedit"; if (CMD_PartyEdit.< > f__mg$cache0 == null) { CMD_PartyEdit.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF); } tutorialObserver2.StartSecondTutorial(tutorialName, CMD_PartyEdit.< > f__mg$cache0, delegate { GUICollider.EnableAllCollider("CMD_PartyEdit_Collider"); }); } else { GUICollider.EnableAllCollider("CMD_PartyEdit_Collider"); } } else { GUICollider.EnableAllCollider("CMD_PartyEdit_Collider"); } }
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 Awake() { FarmRoot.instance = this; string path = "Farm/Builds/SettingMark/SettingMark"; GameObject gameObject = AssetDataMng.Instance().LoadObject(path, null, true) as GameObject; if (null == gameObject) { return; } GameObject gameObject2 = UnityEngine.Object.Instantiate <GameObject>(gameObject); gameObject2.transform.parent = base.transform; gameObject2.transform.localScale = Vector3.one; gameObject2.transform.localPosition = Vector3.zero; gameObject2.transform.localEulerAngles = Vector3.zero; this.settingMark = gameObject2.GetComponent <FarmSettingMark>(); path = "Farm/Builds/SelectMark/SelectMark"; gameObject = (AssetDataMng.Instance().LoadObject(path, null, true) as GameObject); if (null == gameObject) { return; } gameObject2 = UnityEngine.Object.Instantiate <GameObject>(gameObject); gameObject2.transform.parent = base.transform; gameObject2.transform.localScale = Vector3.one; gameObject2.transform.localPosition = Vector3.zero; gameObject2.transform.localEulerAngles = Vector3.zero; this.selectMark = gameObject2.GetComponent <FarmSelectMark>(); gameObject2.SetActive(false); FarmCameraControlForCMD.ClearCount(); }
private void CallEvolutionCutScene(MonsterData monsterData, CutsceneDataEvolution cutsceneData) { CMD_CharacterDetailed detailedWindow = null; CutSceneMain.FadeReqCutScene(cutsceneData, delegate() { FarmCameraControlForCMD.Off(); detailedWindow = CMD_CharacterDetailed.CreateWindow(monsterData); this.DestroyRender3DRT(); if (!this.IsOfflineModeFlag) { this.InitMonsterList(); if (this.gardenInfoList != null) { TimeSpan timeSpan = this.endDateTime - ServerDateTime.Now; int shortenTimeValue = this.GetShortenTimeValue(this.gardenInfoList, monsterData.userMonster.userMonsterId); this.growNeedStone = this.GetCostEvolution(shortenTimeValue, timeSpan); } DkLog.W(string.Format("デジストーン {0} : {1}", DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point, this.growNeedStone), false); DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point -= this.growNeedStone; } }, delegate() { detailedWindow.StartAnimation(); RestrictionInput.EndLoad(); if (this.finishedActionCutScene != null) { this.finishedActionCutScene(); this.finishedActionCutScene = null; } }, 0.5f, 0.5f); }
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) { if (CMD_MultiRecruitPartyWait.Instance == null) { FarmCameraControlForCMD.On(); } base.ClosePanel(animation); }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); ChipTutoial.Start("second_tutorial_chip_reinforcement", delegate { GUICollider.EnableAllCollider("CMD_ChipReinforced"); }); }
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); } }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); UIWidget component = this.renderTextureObject.GetComponent <UIWidget>(); if (null != component) { component.updateAnchors = UIRect.AnchorUpdate.OnStart; } }
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); }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); if (0 < this.worldStageData.Count) { QuestSecondTutorial.StartQuestTopTutorial(this.worldStageData[0].worldStageM.worldAreaId); } else { GUICollider.EnableAllCollider("CMD_QuestTOP"); } }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); UIPanel uipanel = GUIMain.GetUIPanel(); Vector2 windowSize = uipanel.GetWindowSize(); this.vOrgSCR_HEADER = this.goSCR_HEADER.transform.localPosition; this.vOrgSCR_DETAIL = this.goSCR_DETAIL.transform.localPosition; this.vPosSCR_HEADER = this.vOrgSCR_HEADER; this.vPosSCR_HEADER.y = windowSize.y; this.vPosSCR_DETAIL = this.vOrgSCR_DETAIL; this.vPosSCR_DETAIL.x = windowSize.x; }
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); }
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 OnDestroy() { if (Singleton <UserDataMng> .IsInstance()) { Singleton <UserDataMng> .Instance.DestroyUserFacilityData(); } for (int i = 0; i < this.buildCompleteEffects.Count; i++) { if (null != this.buildCompleteEffects[i] && null != this.buildCompleteEffects[i].gameObject) { UnityEngine.Object.Destroy(this.buildCompleteEffects[i].gameObject); } } this.buildCompleteEffects.Clear(); FarmCameraControlForCMD.ClearCount(); }
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); } }
protected override void WindowOpened() { base.WindowOpened(); base.StopAllCoroutines(); if (null != ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification) { ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.StopGetHistoryIdList(); } SoundMng.Instance().StopBGM(0.5f, null); GUIMain.ResetBGM(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { UnityEngine.Object.Destroy(tutorialObserver.gameObject); } TutorialUI tutorialUI = UnityEngine.Object.FindObjectOfType <TutorialUI>(); if (tutorialUI != null) { UnityEngine.Object.Destroy(tutorialUI.gameObject); } AppCoroutine appCoroutine = UnityEngine.Object.FindObjectOfType <AppCoroutine>(); if (appCoroutine != null) { UnityEngine.Object.Destroy(appCoroutine.gameObject); } FarmCameraControlForCMD.ClearRefCT(); Resources.UnloadUnusedAssets(); FarmCameraControlForCMD.Off(); GUIMain.DestroyAllDialog(this); GUICollider.InitAllCollider(); GUIMain.BarrierReset(); Singleton <GUIManager> .Instance.UseOutsideTouchControl = false; FarmRoot farmRoot = UnityEngine.Object.FindObjectOfType <FarmRoot>(); if (farmRoot != null) { UnityEngine.Object.Destroy(farmRoot.gameObject); } GUIFadeControll.StartFadeIn(1f); CMDWebWindow.DeleteWebView(); GUIMain.ReqScreen("UIMaintenance", string.Empty); }
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)
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>(); if (tutorialObserver != null) { GUIMain.BarrierON(null); tutorialObserver.StartSecondTutorial("second_tutorial_digichat", new Action(this.OnFinishTutorial), delegate { GUICollider.EnableAllCollider("CMD_ChatTOP"); }); } else { GUICollider.EnableAllCollider("CMD_ChatTOP"); } }
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); }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); GUICollider.EnableAllCollider("CMD_TitleSelect"); }
public override void ClosePanel(bool animation = true) { FarmCameraControlForCMD.On(); base.ClosePanel(animation); }
protected override void WindowOpened() { base.WindowOpened(); FarmCameraControlForCMD.Off(); QuestSecondTutorial.StartQuestSelectTutorial(); }