public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
 {
     GUICollider.DisableAllCollider("CMD_Profile");
     RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
     base.HideDLG();
     GameWebAPI.RequestUS_UserProfile requestUS_UserProfile = new GameWebAPI.RequestUS_UserProfile();
     requestUS_UserProfile.SetSendData = delegate(GameWebAPI.PRF_Req_ProfileData param)
     {
         param.targetUserId = DataMng.Instance().RespDataCM_Login.playerInfo.UserId;
     };
     requestUS_UserProfile.OnReceived = new Action <GameWebAPI.RespDataPRF_Profile>(DataMng.Instance().SetUserProfile);
     GameWebAPI.RequestUS_UserProfile request = requestUS_UserProfile;
     base.StartCoroutine(request.RunOneTime(delegate()
     {
         RestrictionInput.EndLoad();
         this.ShowDLG();
         this.SetTutorialAnyTime("anytime_second_tutorial_profile");
         this.< Show > __BaseCallProxy0(closeEvent, sizeX, sizeY, showAnimationTime);
     }, delegate(Exception nop)
     {
         RestrictionInput.EndLoad();
         this.< ClosePanel > __BaseCallProxy1(false);
         GUICollider.EnableAllCollider("CMD_Profile");
     }, null));
 }
示例#2
0
 private void TutorialBegginerClear()
 {
     if (!this.IsValidFocusType(CMD_Mission.MissionType.Beginner))
     {
         TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();
         if (tutorialObserver != null)
         {
             GUIMain.BarrierON(null);
             TutorialObserver tutorialObserver2 = tutorialObserver;
             string           tutorialName      = "second_tutorial_mission_beginner";
             if (CMD_Mission.< > f__mg$cache0 == null)
             {
                 CMD_Mission.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
             }
             tutorialObserver2.StartSecondTutorial(tutorialName, CMD_Mission.< > f__mg$cache0, delegate
             {
                 GUICollider.EnableAllCollider("CMD_Mission");
             });
         }
         else
         {
             GUICollider.EnableAllCollider("CMD_Mission");
         }
     }
 }
示例#3
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");
     }
 }
示例#4
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     if (CMD_FarewellListRun.Mode == CMD_FarewellListRun.MODE.SHOW)
     {
         TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();
         if (tutorialObserver != null)
         {
             GUIMain.BarrierON(null);
             TutorialObserver tutorialObserver2 = tutorialObserver;
             string           tutorialName      = "second_tutorial_house";
             if (CMD_FarewellListRun.< > f__mg$cache0 == null)
             {
                 CMD_FarewellListRun.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
             }
             tutorialObserver2.StartSecondTutorial(tutorialName, CMD_FarewellListRun.< > f__mg$cache0, delegate
             {
                 GUICollider.EnableAllCollider("CMD_FarewellListRun");
             });
         }
         else
         {
             GUICollider.EnableAllCollider("CMD_FarewellListRun");
         }
     }
     else
     {
         GUICollider.EnableAllCollider("CMD_FarewellListRun");
     }
 }
    public static void StartQuestSelectTutorial()
    {
        TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();

        if (null == tutorialObserver)
        {
            GUICollider.EnableAllCollider("CMD_QuestSelect");
        }
        else
        {
            GUIMain.BarrierON(null);
            TutorialObserver tutorialObserver2 = tutorialObserver;
            string           tutorialName      = "second_tutorial_quest";
            if (QuestSecondTutorial.< > f__mg$cache0 == null)
            {
                QuestSecondTutorial.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
            }
            Action completed = QuestSecondTutorial.< > f__mg$cache0;
            if (QuestSecondTutorial.< > f__mg$cache1 == null)
            {
                QuestSecondTutorial.< > f__mg$cache1 = new Action(QuestSecondTutorial.InitializedQuestSelectTutorial);
            }
            tutorialObserver2.StartSecondTutorial(tutorialName, completed, QuestSecondTutorial.< > f__mg$cache1);
        }
    }
示例#6
0
 private void Update()
 {
     if (GUIMain.nextGUIScreen != null && !string.IsNullOrEmpty(GUIMain.nextGUIScreen) && GUIManager.ReadyGUI(GUIMain.nextGUIScreen))
     {
         if (GUIMain.gUIScreen != null && !string.IsNullOrEmpty(GUIMain.gUIScreen))
         {
             GUIManager.HideGUI(GUIMain.gUIScreen);
             if (!GUIMain.backMode_)
             {
                 if (!("UIHome" == GUIMain.nextGUIScreen) && !("UI*****" == GUIMain.nextGUIScreen))
                 {
                     if (!("UIRestart" == GUIMain.gUIScreen) && !("UI******" == GUIMain.gUIScreen))
                     {
                         GUIMain.beforeGUIScreen.Push(GUIMain.gUIScreen);
                     }
                 }
             }
             GUIMain.backMode_ = false;
         }
         GUIMain.gUIScreen = GUIMain.nextGUIScreen;
         GUIManager.ShowGUI(GUIMain.nextGUIScreen);
         GUICollider.EnableAllCollider("GUIMain");
         GUIMain.nextGUIScreen = string.Empty;
     }
 }
    private void UpdateAnimationTicketIcon()
    {
        if (!this.StartEffect)
        {
            return;
        }
        int num = this.curTicketFrameCT % this.showChipInterval;

        if ((num == 0 || this.isOnTapped) && this.curTicketInitNUM < CMD_TicketGashaResult.UserDungeonTicketList.Length)
        {
            if (this.curTicketInitNUM == 0)
            {
                GUICollider.EnableAllCollider("=================================== CMD_TicketGashaResult::UpdateShowTicketIcons");
            }
            this.ticketEffectList[this.curTicketInitNUM].Play();
            this.curTicketInitNUM++;
            SoundMng.Instance().PlaySE("SEInternal/Farm/se_221", 0f, false, true, null, -1, 1f);
            if (CMD_TicketGashaResult.UserDungeonTicketList.Length == this.curTicketInitNUM)
            {
                this.StartEffect = false;
                this.startButton.gameObject.SetActive(true);
                if (CMD_TicketGashaResult.RewardsData != null)
                {
                    GUICollider.DisableAllCollider("=================================== CMD_TicketGashaResult::ICON");
                    AppCoroutine.Start(this.GashaRewardSet(0.7f), true);
                }
            }
        }
        this.curTicketFrameCT++;
    }
    public static void StartQuestTopTutorial(string worldAreaId)
    {
        string questTopTutorialFileName = QuestSecondTutorial.GetQuestTopTutorialFileName(worldAreaId);

        if (string.IsNullOrEmpty(questTopTutorialFileName))
        {
            GUICollider.EnableAllCollider("CMD_QuestTOP");
        }
        else
        {
            TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();
            if (null == tutorialObserver)
            {
                GUICollider.EnableAllCollider("CMD_QuestTOP");
            }
            else
            {
                GUIMain.BarrierON(null);
                TutorialObserver tutorialObserver2 = tutorialObserver;
                string           tutorialName      = questTopTutorialFileName;
                if (QuestSecondTutorial.< > f__mg$cache2 == null)
                {
                    QuestSecondTutorial.< > f__mg$cache2 = new Action(GUIMain.BarrierOFF);
                }
                Action completed = QuestSecondTutorial.< > f__mg$cache2;
                if (QuestSecondTutorial.< > f__mg$cache3 == null)
                {
                    QuestSecondTutorial.< > f__mg$cache3 = new Action(QuestSecondTutorial.InitializedQuestTopTutorial);
                }
                tutorialObserver2.StartSecondTutorial(tutorialName, completed, QuestSecondTutorial.< > f__mg$cache3);
            }
        }
    }
示例#9
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");
        }
    }
示例#10
0
 private void RequestUserFacilityShopInfo(APIRequestTask task, Action <int> closeEvent, float sizeX, float sizeY, float showTime)
 {
     base.StartCoroutine(task.Run(delegate
     {
         RestrictionInput.EndLoad();
         Singleton <UserDataMng> .Instance.RequestUserStockFacilityDataAPI(delegate(bool flg)
         {
             if (flg)
             {
                 this.ShowDLG();
                 this.InitFacilityShop(closeEvent, sizeX, sizeY, showTime);
             }
             else
             {
                 RestrictionInput.EndLoad();
                 GUICollider.EnableAllCollider("CMD_FacilityShop");
                 this.ClosePanel(false);
             }
         });
     }, delegate(Exception nop)
     {
         RestrictionInput.EndLoad();
         GUICollider.EnableAllCollider("CMD_FacilityShop");
         this.ClosePanel(false);
     }, null));
 }
示例#11
0
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     GUICollider.DisableAllCollider("CMD_ColosseumBonus");
     base.HideDLG();
     base.ShowDLG();
     base.Show(f, sizeX, sizeY, aT);
     GUICollider.EnableAllCollider("CMD_ColosseumBonus");
 }
示例#12
0
 protected override void WindowOpened()
 {
     base.WindowOpened();
     FarmCameraControlForCMD.Off();
     ChipTutoial.Start("second_tutorial_chip_reinforcement", delegate
     {
         GUICollider.EnableAllCollider("CMD_ChipReinforced");
     });
 }
示例#13
0
 private void PurchaseProductCallBackNone(bool success)
 {
     global::Debug.Log("================================================= STORE PP_CALLBACK --> NONE !!");
     if (this.actCallBackReConsume != null)
     {
         this.actCallBackReConsume(success);
     }
     GUICollider.EnableAllCollider("StoreUtil");
 }
示例#14
0
 protected virtual void OnDestroy()
 {
     if (!this.enableSizeSmall)
     {
         this.enableSizeSmall = true;
         GUICollider.EnableAllCollider("GUICollider:WaitForSmallScaleEnd End");
     }
     GUIManager.DeleteCollider(this);
 }
示例#15
0
 private void Initialize(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
 {
     base.Show(closeEvent, sizeX, sizeY, showAnimationTime);
     if (null != base.PartsTitle)
     {
         base.PartsTitle.SetTitle(StringMaster.GetString("BlockListTitle"));
     }
     this.BuildBlockList();
     GUICollider.EnableAllCollider("CMD_BlockList");
 }
    private IEnumerator GashaRewardSet(float delay)
    {
        yield return(new WaitForSeconds(delay));

        CMD_CaptureBonus dialog = GUIMain.ShowCommonDialog(null, "CMD_CaptureBonus", null) as CMD_CaptureBonus;

        dialog.DialogDataSet(CMD_TicketGashaResult.RewardsData);
        dialog.AdjustSize();
        GUICollider.EnableAllCollider("=================================== CMD_TicketGashaResult::ICON");
        yield break;
    }
 private void actEndList(int i)
 {
     this.actCT = 0;
     this.SetCT2Parent(-1);
     GUICollider.EnableAllCollider("ListPartsBS : " + base.gameObject.name);
     if (this.actEndCallBack != null)
     {
         this.actEndCallBack(0);
         this.actEndCallBack = null;
     }
     this.FadeInEnd(0);
 }
示例#18
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");
     }
 }
示例#19
0
    private IEnumerator OpenMaxMessage()
    {
        yield return(null);

        GUICollider.EnableAllCollider("CMD_PairSelectBase");
        CMD_ModalMessage cd = GUIMain.ShowCommonDialog(delegate(int i)
        {
            this.ClosePanel(false);
        }, "CMD_ModalMessage", null) as CMD_ModalMessage;

        cd.Title = this.GetTitle();
        cd.Info  = this.GetInfoCannotEnter();
        yield break;
    }
示例#20
0
 private IEnumerator WaitForSmallScaleEnd(Touch touch, Vector2 pos, bool flag)
 {
     while (this.toSmallSeq != 1)
     {
         yield return(null);
     }
     this.vTmp3.x = this.originalScale.x;
     this.vTmp3.y = this.originalScale.y;
     base.KickTween(LocalTween.TWEEN_TYPE.LOCAL_SCALE, this.vTmp3, 0.1f, null, 0);
     this.TouchEndMethod(touch, pos, flag);
     this.enableSizeSmall = true;
     GUICollider.EnableAllCollider("GUICollider:WaitForSmallScaleEnd End");
     yield break;
 }
示例#21
0
    private void consumeProductCallBackFailed(string err)
    {
        Singleton <DebugLogScreen> .Instance.Print(err);

        if (++this.svRetryCt >= 3)
        {
            int numFromProductId = this.GetNumFromProductId(this._productId);
            this.ShowErrorDialog(err);
            GUICollider.EnableAllCollider("StoreUtil");
            StoreInit.Instance().SetStatusToReconsume();
            return;
        }
        NpSingleton <NpPurchase> .Instance.SuccessPurchase(new Action(this.consumeProductCallBackSuccess), new Action <string>(this.consumeProductCallBackFailed));
    }
示例#22
0
    private void PurchaseProductCallBackFail(string err)
    {
        global::Debug.Log("================================================= STORE PP_CALLBACK --> FAILED !!");
        GUICollider.EnableAllCollider("StoreUtil");
        this.ShowErrorDialog(err);
        Singleton <DebugLogScreen> .Instance.Print(err);

        int num = int.Parse(err);

        if (num == 405)
        {
            StoreInit.Instance().SetStatusToReconsume();
        }
    }
 protected override void OnDestroy()
 {
     base.OnDestroy();
     if (this.actCT == 1)
     {
         GUICollider.EnableAllCollider("ListPartsBS : " + base.gameObject.name);
         this.actCT = 0;
         this.SetCT2Parent(-1);
         if (this.actEndCallBack != null)
         {
             this.actEndCallBack(0);
             this.actEndCallBack = null;
         }
     }
 }
示例#24
0
 private void EndMoved(int i)
 {
     if (this.mainParts.IsShow())
     {
         this.goMENU_BAR.transform.localRotation = Quaternion.Euler(0f, 0f, 180f);
         this.goNEW_ICON.SetActive(false);
         this._isShowed = true;
     }
     else
     {
         this.goMENU_BAR.transform.localRotation = Quaternion.Euler(0f, 0f, 0f);
         PartsMenu.SetMenuButtonAlertBadge();
         this._isShowed             = false;
         GUIManager.ExtBackKeyReady = true;
         GUIMain.GetUIRoot().BroadcastMessage("OnCloseMenuReceiver", SendMessageOptions.DontRequireReceiver);
     }
     GUICollider.EnableAllCollider("PartsMenu_Collider");
 }
示例#25
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");
        }
    }
示例#26
0
    public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime)
    {
        GUICollider.DisableAllCollider("CMD_BlockList");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        APIRequestTask task = BlockManager.instance().RequestBlockList(false);

        base.StartCoroutine(task.Run(delegate
        {
            RestrictionInput.EndLoad();
            this.ShowDLG();
            this.Initialize(closeEvent, sizeX, sizeY, showAnimationTime);
        }, delegate(Exception nop)
        {
            RestrictionInput.EndLoad();
            this.< ClosePanel > __BaseCallProxy0(false);
            GUICollider.EnableAllCollider("CMD_BlockList");
        }, null));
    }
示例#27
0
    private void VerifyReceiptFailed(Exception noop)
    {
        string noop2 = (noop == null) ? string.Empty : noop.Message;

        Singleton <DebugLogScreen> .Instance.Print(noop2);

        if (++this.svRetryCt < 3)
        {
            this.RequestPurchaseAndroid();
        }
        else
        {
            global::Debug.Log("================================================= STORE VERIFY FAIL!!");
            StoreInit.Instance().SetStatusToReconsume();
            if (this.actCallBackReConsume != null)
            {
                this.actCallBackReConsume(false);
            }
            GUICollider.EnableAllCollider("StoreUtil");
        }
    }
    private IEnumerator InitReinforceTOP(Action <int> f, float sizeX, float sizeY, float aT)
    {
        bool success = false;

        GameWebAPI.RespDataCP_Campaign.CampaignInfo trainExpUpData    = DataMng.Instance().GetCampaignInfo(GameWebAPI.RespDataCP_Campaign.CampaignType.TrainExpUp);
        GameWebAPI.RespDataCP_Campaign.CampaignInfo trainCostDownData = DataMng.Instance().GetCampaignInfo(GameWebAPI.RespDataCP_Campaign.CampaignType.TrainCostDown);
        if (trainExpUpData == null && trainCostDownData == null)
        {
            APIRequestTask task = DataMng.Instance().RequestCampaignAll(false);
            yield return(base.StartCoroutine(task.Run(delegate
            {
                success = true;
            }, delegate(Exception nop)
            {
                success = false;
            }, null)));
        }
        else
        {
            success = true;
        }
        if (success)
        {
            base.PartsTitle.SetTitle(StringMaster.GetString("ReinforcementTitle"));
            this.InitMonsterList(true);
            this.ShowChgInfo();
            this.CalcAndShowLevelChange();
            this.UpdateClusterNum();
            base.ShowDLG();
            base.SetTutorialAnyTime("anytime_second_tutorial_reinforcement");
            base.Show(f, sizeX, sizeY, aT);
        }
        else
        {
            GUICollider.EnableAllCollider("CMD_ReinforcementTOP");
            base.ClosePanel(true);
        }
        RestrictionInput.EndLoad();
        yield break;
    }
    protected override void ShowSecondTutorial()
    {
        TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();

        if (tutorialObserver != null)
        {
            GUIMain.BarrierON(null);
            TutorialObserver tutorialObserver2 = tutorialObserver;
            string           tutorialName      = "second_tutorial_laboratory";
            if (CMD_Laboratory.< > f__mg$cache0 == null)
            {
                CMD_Laboratory.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
            }
            tutorialObserver2.StartSecondTutorial(tutorialName, CMD_Laboratory.< > f__mg$cache0, delegate
            {
                GUICollider.EnableAllCollider("CMD_Laboratory");
            });
        }
        else
        {
            GUICollider.EnableAllCollider("CMD_Laboratory");
        }
        base.SetTutorialAnyTime("anytime_second_tutorial_laboratory");
    }
示例#30
0
    protected override void WindowOpened()
    {
        base.WindowOpened();
        TutorialObserver tutorialObserver = UnityEngine.Object.FindObjectOfType <TutorialObserver>();

        if (null != tutorialObserver)
        {
            GUIMain.BarrierON(null);
            TutorialObserver tutorialObserver2 = tutorialObserver;
            string           tutorialName      = "second_tutorial_succession";
            if (CMD_Succession.< > f__mg$cache0 == null)
            {
                CMD_Succession.< > f__mg$cache0 = new Action(GUIMain.BarrierOFF);
            }
            tutorialObserver2.StartSecondTutorial(tutorialName, CMD_Succession.< > f__mg$cache0, delegate
            {
                GUICollider.EnableAllCollider("CMD_Succession");
            });
        }
        else
        {
            GUICollider.EnableAllCollider("CMD_Succession");
        }
    }