public override void HandleAction()
        {
            NewbieManager.Instance.NotifyServerNewbieGuidePhase(ENewbiePhaseType.End);
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0f, 0f, 0f, 0.01f));

            Singleton <NewbieView> .Instance.ShowEleHallActAchieveAwd();

            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
        }
        private void OnClickBlock(GameObject obj1 = null)
        {
            if (ModelManager.Instance.Get_blackList_X() != null && ModelManager.Instance.Get_blackList_X().Find((FriendData obj) => obj.TargetId == this.targetSummId) != null)
            {
                Singleton <TipView> .Instance.ShowViewSetText("已在黑名单中", 1f);

                return;
            }
            CtrlManager.ShowMsgBox(LanguageManager.Instance.GetStringById("FriendsUI_DialogBox_Title_AddBlackList"), LanguageManager.Instance.GetStringById("FriendsUI_DialogBox_Content_AddBlackList"), new Action <bool>(this.BoolMoveBlack), PopViewType.PopTwoButton, "确定", "取消", null);
        }
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.5f, 0.5f, 0.5f, 0.01f));

            Singleton <NewbieView> .Instance.ShowDispSkillInfoHint();

            NewbieManager.Instance.PlayVoiceHintOnce(this._voiceResId);
            base.AutoMoveNextStepWithDelay(7.5f);
        }
Esempio n. 4
0
 private void FailedTransaction(string s)
 {
     UnityEngine.Debug.Log("[MsgFrom ios]FailedTransaction : " + s);
     if (this.productInfo.Count == 0)
     {
         return;
     }
     MobaMessageManagerTools.EndWaiting_manual("IAPInBuy");
     CtrlManager.ShowMsgBox("提示", "支付不成功,请重试!", new Action <bool>(this.ReComfirm), PopViewType.PopOneButton, "确定", "取消", null);
 }
        public override void HandleAction()
        {
            NewbieManager.Instance.DisableEleBatFiveTriggerCheck();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.ShowTitleWithText(this._mainText, this._subText);

            Singleton <NewbieView> .Instance.ShowEleBatFiveUseRecoveryHint();

            NewbieManager.Instance.PlayVoiceHintOnce(this._voiceResId);
        }
        public override void HandleAction()
        {
            NewbieManager.Instance.NotifyServerNewbieGuidePhase(ENewbiePhaseType.FakeMatchFive);
            NewbieManager.Instance.FakeMatchFiveStopCheckTrigger();
            NewbieManager.Instance.FakeMatchFiveDestroyDelayStepEnd();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.5f, 0.5f, 0.5f, 0.1f));

            NewbieManager.Instance.StartDelayShowSettlementContinue(0.7f);
        }
Esempio n. 7
0
 private void ShowBox1(string title, string content, Action callback)
 {
     CtrlManager.ShowMsgBox("提示", content, delegate
     {
         if (callback != null)
         {
             callback();
         }
     }, PopViewType.PopOneButton, "确定", "取消", null);
 }
        public override void OnLeave()
        {
            NewbieManager.Instance.StopVoiceHintOnce();
            Singleton <NewbieView> .Instance.HideEleBatFiveUseRecoveryHint();

            Singleton <NewbieView> .Instance.HideTitle();

            CtrlManager.CloseWindow(WindowID.NewbieView);
            NewbieManager.Instance.EnableEleBatFiveTriggerCheck();
        }
Esempio n. 9
0
        private void CloseView_ShopView()
        {
            MsgData_BattleShop_onOP param = new MsgData_BattleShop_onOP
            {
                op = EBattleShopOP.eClose
            };

            MobaMessageManagerTools.SendClientMsg(ClientC2C.BattleShop_onOP, param, false);
            CtrlManager.CloseWindow(WindowID.BattleEquipmentView);
        }
Esempio n. 10
0
 private void OnOpenView(MobaMessage msg)
 {
     if (msg != null && this.isRequest)
     {
         MagicBottleData param = (MagicBottleData)msg.Param;
         CtrlManager.OpenWindow(WindowID.BottleSystemView, null);
         MobaMessageManagerTools.SendClientMsg(ClientC2V.OpenBottleView, param, false);
         this.isRequest = false;
     }
 }
        public override void OnLeave()
        {
            NewbieManager.Instance.StopVoiceHintLoop();
            Singleton <NewbieView> .Instance.HideTitle();

            CtrlManager.CloseWindow(WindowID.NewbieView);
            NewbieManager.Instance.HideMoveGuideLine();
            this.StopCheckPlayerReachPosition();
            this.DestroyEffectHint();
        }
        public override void OnLeave()
        {
            Singleton <NewbieView> .Instance.HideHintEleBatFiveToSelectMap();

            Singleton <NewbieView> .Instance.HideHintEnterBatFive();

            Singleton <NewbieView> .Instance.HideMask();

            CtrlManager.CloseWindow(WindowID.NewbieView);
        }
        private void OnTimerFinished()
        {
            this.StopTimer();
            base.DoAction(ELoginAction.eVedio2Start);
            string bgPath = (!ToolsFacade.Instance.IsInNewYearTime(DateTime.Now)) ? "Texture/LoginTex/LoginBg" : "Texture/LoginTex/LoginBg1";

            Singleton <BgView> .Instance.SetBgPath(bgPath);

            CtrlManager.OpenWindow(WindowID.BgView, null);
        }
Esempio n. 14
0
        private void GetHero(GameObject obj)
        {
            if (obj.name == "PurchaseBtn")
            {
                CtrlManager.OpenWindow(WindowID.PurchasePopupView, null);
                Singleton <PurchasePopupView> .Instance.onSuccess.Add(new Callback(this.BuyHero));

                Singleton <PurchasePopupView> .Instance.Show(GoodsSubject.Hero, this.heroNPC, 1, false);
            }
        }
Esempio n. 15
0
        public override void OnLeave()
        {
            NewbieManager.Instance.StopVoiceHintLoop();
            Singleton <NewbieView> .Instance.HideTitle();

            Singleton <NewbieView> .Instance.HideUseSkillHint(2);

            Singleton <NewbieView> .Instance.HideMask();

            CtrlManager.CloseWindow(WindowID.NewbieView);
        }
        public override void OnLeave()
        {
            NewbieManager.Instance.EnableEleBatFiveTriggerCheck();
            NewbieManager.Instance.StopEleBatFiveDelayHpLessThirtyEnd();
            NewbieManager.Instance.StopVoiceHintOnce();
            Singleton <NewbieView> .Instance.HideEleBatFiveUseBackHome();

            Singleton <NewbieView> .Instance.HideTitle();

            CtrlManager.CloseWindow(WindowID.NewbieView);
        }
Esempio n. 17
0
 private void OnMsg_coalesceviewAfterCoalesce(MobaMessage msg)
 {
     if (msg != null && this.modelID != 0)
     {
         CtrlManager.OpenWindow(WindowID.GetItemsView, null);
         MobaMessageManagerTools.GetItems_Rune(this.modelID);
         GetItemsView expr_29 = Singleton <GetItemsView> .Instance;
         expr_29.onFinish = (Callback)Delegate.Combine(expr_29.onFinish, new Callback(this.RefreshDataUI));
         Singleton <GetItemsView> .Instance.Play();
     }
 }
        public override void OnLeave()
        {
            NewbieManager.Instance.StopVoiceHintLoop();
            Singleton <NewbieView> .Instance.HideEleBatFiveHintMoveNextBtn();

            Singleton <NewbieView> .Instance.HideEleBatFiveHintPicSecond();

            Singleton <NewbieView> .Instance.HideMask();

            CtrlManager.CloseWindow(WindowID.NewbieView);
        }
Esempio n. 19
0
 private void InitData(byte[] data)
 {
     if (data != null)
     {
         BaseDataMgr.instance.InitBaseConfigData(data);
     }
     else
     {
         CtrlManager.ShowMsgBox(string.Empty, "配置文件错误!", new Action(this.QuitApp), PopViewType.PopOneButton, "确定", "取消", null);
     }
 }
Esempio n. 20
0
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.5f, 0.5f, 0.5f, 0.01f));

            Singleton <NewbieView> .Instance.ShowUseSkillHint(2);

            Singleton <NewbieView> .Instance.ShowTitleWithText(this._mainText);

            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
        }
        public override void HandleAction()
        {
            if (Singleton <PvpWaitView> .Instance != null)
            {
                Singleton <PvpWaitView> .Instance.NewbieFakeMatchFiveShowMatch();
            }
            Singleton <NewbieView> .Instance.HideMask();

            CtrlManager.CloseWindow(WindowID.NewbieView);
            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
        }
 private void OnMsg_AreaViewNew_enterGame(MobaMessage msg)
 {
     CtrlManager.CloseWindow(WindowID.AreaView_New);
     LoginStateManager.Instance.AddTasks(new LoginTaskBase[]
     {
         new LoginTask_loadView(),
         new ILoginTask_downLoadBindata(),
         new LoginTask_checkDowload(),
         new LoginTask_initData()
     });
 }
Esempio n. 23
0
 private void ShowSceneEditor(string[] param)
 {
     if (Singleton <UISceneEditor> .Instance.IsOpened)
     {
         CtrlManager.CloseWindow(WindowID.SceneEditor);
     }
     else
     {
         CtrlManager.OpenWindow(WindowID.SceneEditor, null);
     }
 }
        public override void HandleAction()
        {
            NewbieManager.Instance.DisableEleBatFiveTriggerCheck();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.ShowTitleWithText(this._mainText);

            Singleton <NewbieView> .Instance.ShowEleBatFiveMiniMapShop();

            NewbieManager.Instance.PlayVoiceHintOnce(this._voiceResId);
            base.AutoMoveNextStepWithDelay(10f);
        }
        public override void HandleAction()
        {
            this.ReqSpawnOneSoldier();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.5f, 0.5f, 0.5f, 0.01f));

            Singleton <NewbieView> .Instance.ShowSelSoldierChecker();

            NewbieManager.Instance.PlayVoiceHintOnce(this._voiceResId);
            base.AutoMoveNextStepWithDelay(3.8f);
        }
 public override void ClearViews()
 {
     base.ClearViews();
     CtrlManager.DestroyAllWindowsExcept(new WindowID[]
     {
         WindowID.VictoryView
     });
     ResourceManager.UnLoadAllAssets(false);
     this.SendAddProgress(5);
     base.SetGoOn();
 }
        public override void HandleAction()
        {
            NewbieManager.Instance.ShowHudView();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0f, 0f, 0f, 0.75f));

            Singleton <NewbieView> .Instance.ShowGestureAnimation(true);

            NewbieManager.Instance.PlayVoiceHintOnce(this._voiceHintResId);
            base.AutoMoveNextStepWithDelay(7.5f);
        }
Esempio n. 28
0
        private void ClickPurchase(GameObject obj)
        {
            if (null != obj)
            {
                this.beforePurchase = this.countRunes;
                CtrlManager.OpenWindow(WindowID.PurchasePopupView, null);
                Singleton <PurchasePopupView> .Instance.onSuccess.Add(new Callback(this.AfterPurchase));

                Singleton <PurchasePopupView> .Instance.Show(GoodsSubject.Props, this.modelID_1.ToString(), 1, false);
            }
        }
        public override void HandleAction()
        {
            this.ReqForbidFastDoor();
            this.CreateForbidFastDoorEffect();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0f, 0f, 0f, 0.01f));

            Singleton <NewbieView> .Instance.ShowFastBuyEquipHint();

            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
        }
Esempio n. 30
0
        public override void HandleAction()
        {
            CtrlManager.CloseWindow(WindowID.NewbieLoadView);
            NewbieManager.Instance.ShowEleBatFiveLineHint();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.027f, 0.051f, 0.175f, 0.9f));

            Singleton <NewbieView> .Instance.ShowEleBatFiveHintPicFirst();

            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
            base.AutoMoveNextStepWithDelay(10f);
        }