Пример #1
0
    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");
        }
    }
Пример #2
0
 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");
     }
 }
Пример #3
0
    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);
    }
Пример #4
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     FarmCameraControlForCMD.Off();
     ChipTutoial.Start("second_tutorial_chip_reinforcement", delegate
     {
         GUICollider.EnableAllCollider("CMD_ChipReinforced");
     });
 }
    protected override void WindowOpened()
    {
        base.WindowOpened();
        FarmCameraControlForCMD.Off();
        UIWidget component = this.renderTextureObject.GetComponent <UIWidget>();

        if (null != component)
        {
            component.updateAnchors = UIRect.AnchorUpdate.OnStart;
        }
    }
Пример #6
0
 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;
    }
Пример #8
0
    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);
    }
Пример #9
0
    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");
        }
    }
Пример #10
0
    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();
        }
    }
Пример #11
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     FarmCameraControlForCMD.Off();
     QuestSecondTutorial.StartQuestSelectTutorial();
 }
Пример #12
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     FarmCameraControlForCMD.Off();
     GUICollider.EnableAllCollider("CMD_TitleSelect");
 }
Пример #13
0
 protected override void WindowOpened()
 {
     base.StopCoroutine(this.progressBarUpdatingCoroutine);
     base.WindowOpened();
     FarmCameraControlForCMD.Off();
 }
Пример #14
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     this.lbTX_EMPTY.gameObject.SetActive(true);
     FarmCameraControlForCMD.Off();
 }
Пример #15
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     FarmCameraControlForCMD.Off();
     this.TutorialBegginerClear();
 }
Пример #16
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     FarmCameraControlForCMD.Off();
 }
Пример #17
0
 protected override void OnOpenedDialog()
 {
     FarmCameraControlForCMD.Off();
 }