private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Backslash))
     {
         if (null != Singleton <HomeChatview> .Instance.transform)
         {
             if (Singleton <HomeChatview> .Instance.gameObject.activeInHierarchy)
             {
                 CtrlManager.CloseWindow(WindowID.HomeChatview);
             }
             else
             {
                 CtrlManager.OpenWindow(WindowID.HomeChatview, null);
                 MobaMessageManagerTools.SendClientMsg(ClientV2C.chatviewOpenView, ChitchatType.Hall, false);
                 MobaMessageManagerTools.SendClientMsg(ClientV2C.chatviewFillChatHistory, false, false);
             }
         }
         else
         {
             CtrlManager.OpenWindow(WindowID.HomeChatview, null);
             MobaMessageManagerTools.SendClientMsg(ClientV2C.chatviewOpenView, ChitchatType.Hall, false);
             MobaMessageManagerTools.SendClientMsg(ClientV2C.chatviewFillChatHistory, true, false);
         }
     }
 }
Beispiel #2
0
    public void SwitchBtnEvent()
    {
        if (Singleton <PvpSelectHeroView> .Instance.IsOpen)
        {
            Singleton <TipView> .Instance.ShowViewSetText("选择英雄时不可前往!!!", 1f);

            return;
        }
        string text = this.strSwitch;

        switch (text)
        {
        case "2":
            MobaMessageManagerTools.SendClientMsg(ClientV2C.bottleSystemOpenView, null, false);
            break;

        case "3":
            CtrlManager.OpenWindow(WindowID.SignView, null);
            break;

        case "4":
            CtrlManager.OpenWindow(WindowID.AchievementView, null);
            break;

        case "5":
            CtrlManager.OpenWindow(WindowID.RankView, null);
            break;

        case "6":
            CtrlManager.OpenWindow(WindowID.ArenaModeView, null);
            break;
        }
    }
Beispiel #3
0
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.ShowUseSkillHint(3);

            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
        }
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0f, 0f, 0f, 0.01f));

            Singleton <NewbieView> .Instance.ShowEleHallActCloseActivity();
        }
        private void SwitchToOtherWindow(GameObject obj)
        {
            if (null != obj)
            {
                string text = this.strSwitch;
                switch (text)
                {
                case "2":
                    MobaMessageManagerTools.SendClientMsg(ClientV2C.bottleSystemOpenView, null, false);
                    break;

                case "3":
                    CtrlManager.OpenWindow(WindowID.SignView, null);
                    break;

                case "4":
                    CtrlManager.OpenWindow(WindowID.TaskView, null);
                    break;

                case "5":
                    CtrlManager.OpenWindow(WindowID.RankView, null);
                    break;

                case "6":
                    CtrlManager.OpenWindow(WindowID.ArenaModeView, null);
                    break;
                }
            }
        }
Beispiel #6
0
 private void ShowTrumpetView(GameObject obj)
 {
     if (null != obj)
     {
         CtrlManager.OpenWindow(WindowID.TrumpetView, null);
     }
 }
Beispiel #7
0
 private void OnBattleStart(MobaMessage msg)
 {
     if (SurrenderMgr.IsVisible(this._activeSurrenderInfo))
     {
         CtrlManager.OpenWindow(WindowID.SurrenderView, null);
     }
 }
 public override void HandleAction()
 {
     NewbieManager.Instance.DisableFakeMatchFiveTrigger();
     NewbieManager.Instance.StartFakeMatchFiveCheckFirHpLessNintyEnd();
     CtrlManager.OpenWindow(WindowID.NewbieView, null);
     Singleton <NewbieView> .Instance.ShowFakeMatchFiveUseRecoveryHint();
 }
Beispiel #9
0
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.ShowTitleWithText(this._mainText);

            base.AutoMoveNextStepWithDelay(2f);
        }
 public override void HandleAction()
 {
     NewbieManager.Instance.DisableFakeMatchFiveTrigger();
     NewbieManager.Instance.StartFakeMatchFiveCheckFirHeroDeadEnd();
     CtrlManager.OpenWindow(WindowID.NewbieView, null);
     Singleton <NewbieView> .Instance.ShowFakeMatchFiveHintAttack();
 }
        private void OnGetAllGameServers(MobaMessage msg)
        {
            OperationResponse operationResponse = msg.Param as OperationResponse;

            if (operationResponse == null)
            {
                Singleton <TipView> .Instance.ShowViewSetText("更新服务器列表失败:系统错误", 1f);

                this.GetAllGameServers();
            }
            else
            {
                short returnCode = operationResponse.ReturnCode;
                if (returnCode != 0)
                {
                    Singleton <TipView> .Instance.ShowViewSetText("更新服务器列表失败:系统错误", 1f);

                    this.GetAllGameServers();
                }
                else
                {
                    CtrlManager.CloseWindow(WindowID.LoginView_New);
                    CtrlManager.OpenWindow(WindowID.AreaView_New, null);
                    this.bFinish = true;
                }
            }
        }
 public override void HandleAction()
 {
     NewbieManager.Instance.DisableFakeMatchFiveTrigger();
     NewbieManager.Instance.StartFakeMatchFiveCheckFirNearFirTowerEnd();
     CtrlManager.OpenWindow(WindowID.NewbieView, null);
     Singleton <NewbieView> .Instance.ShowFakeMatchFiveBarrage();
 }
 public override void BeginLoad()
 {
     base.BeginLoad();
     CtrlManager.OpenWindow(WindowID.LoadView, null);
     this.SendTargetProgress(10);
     base.SetGoOn();
 }
Beispiel #14
0
 private void openView(string[] param)
 {
     CtrlManager.OpenWindow(WindowID.MiniMapView, null);
     CtrlManager.OpenWindow(WindowID.SkillView, null);
     CtrlManager.OpenWindow(WindowID.ShowEquipmentPanelView, null);
     CtrlManager.OpenWindow(WindowID.CharacterView, null);
 }
 public static void Begin(TeamSignalType mode)
 {
     TeamSignalManager.IsBegin = true;
     TeamSignalManager.CurMode = mode;
     CtrlManager.OpenWindow(WindowID.TeamSignalView, null);
     Singleton <MiniMapView> .Instance.BeginTeamSignal();
 }
Beispiel #16
0
 private void ShowLoadView()
 {
     CtrlManager.OpenWindow(WindowID.LoadView2, null);
     MobaMessageManagerTools.LoadView2_setText2("下载资源...", false);
     MobaMessageManagerTools.LoadView2_setProgress2(0, this.tNum, this.cNum, null, MsgData_LoadView2_setProgress.SetType.targetNum);
     base.DoAction(ELoginAction.eShowLoadView);
 }
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.ShowNormCastOpenSysSetting();

            Singleton <NewbieView> .Instance.ShowTitleWithText(this._mainText);
        }
Beispiel #18
0
    public override void OnUpdate(float deltaTime)
    {
        this.timeSum += deltaTime;
        if (this.self.isPlayer)
        {
            if ((double)this.self.hp < (double)this.self.hp_max * 0.1 && this.self.isLive)
            {
                if (!Singleton <HeartView> .Instance.IsOpened)
                {
                    CtrlManager.OpenWindow(WindowID.HeartView, null);
                }
            }
            else if (Singleton <HeartView> .Instance.IsOpened)
            {
                CtrlManager.CloseWindow(WindowID.HeartView);
            }
        }
        if ((this.self.isHero || this.self.IsSummonedCreature) && this.self.isMyTeam && this.self.isLive)
        {
            this.SetShadowHeight(this.self.mTransform.position.y);
            if (this.self.isPlayer && Singleton <SkillView> .Instance.transform && this.timeSum >= 0.8f)
            {
                Singleton <SkillView> .Instance.UpdateSelfValue(this.self, false, false);

                this.timeSum = 0f;
            }
        }
        if (this.isChangePlayer)
        {
            if (!this.self.isPlayer)
            {
                if (this.mSkillPointer.IsValid <SkillPointer>())
                {
                    this.mSkillPointer.Component.DestroySelf();
                }
            }
            else if (this.mHpBar != null)
            {
                this.mHpBar.UpdateView();
            }
            this.isChangePlayer = false;
        }
        if (this.self.isSelected && this.outlineAnimCurve != null)
        {
            this.animTime += Time.deltaTime;
            if (this.animTime > this.outlineAnimCurveKeys[2].time)
            {
                this.animTime -= this.outlineAnimCurveKeys[2].time;
            }
            float num  = this.outlineAnimCurve.Evaluate(this.animTime);
            float num2 = num * 0.8f;
            num2 = Mathf.Clamp(num2, 0.65f, 1f);
            this.SetOutline(new Color(num2, 0f, 0f), 0.03f * num);
        }
        else
        {
            this.SetOutline(Color.black, 0.035f);
        }
    }
 private void OnMsg_GetPlayerData(MobaMessage msg)
 {
     if (msg.Param != null && !Singleton <RankView> .Instance.IsOpen)
     {
         CtrlManager.OpenWindow(WindowID.DetailsInfo, null);
         Singleton <DetailsInfo> .Instance.ShowDetailsInfo_withoutBottleRank(this.targetData.UserId.ToString());
     }
 }
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.5f, 0.5f, 0.5f, 0.01f));

            NewbieManager.Instance.PlayVoiceHintOnce(this._voiceResId);
            base.AutoMoveNextStepWithDelay(4.5f);
        }
        private void ActionAddExpBall(MobaMessage msg)
        {
            SendMsgManager.SendMsgParam sendMsgParam = new SendMsgManager.SendMsgParam(true, "正在打开商店页面...", true, 15f);
            CtrlManager.OpenWindow(WindowID.PurchasePopupView, null);
            Singleton <PurchasePopupView> .Instance.onSuccess.Add(new Callback(this.PurchaseSuccess));

            Singleton <PurchasePopupView> .Instance.Show(ETypicalCommodity.MagicExpBottle, false);
        }
        public override void HandleAction()
        {
            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);
            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
        }
        public override void HandleAction()
        {
            this.DisplayAllObstacleEffect();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.5f, 0.5f, 0.5f, 0.01f));

            base.AutoMoveNextStepWithDelay(0.5f);
        }
Beispiel #24
0
 private void OnMsg_OpenSacrificial(MobaMessage msg)
 {
     if (msg != null)
     {
         CtrlManager.OpenWindow(WindowID.SacrificialView, null);
         CtrlManager.CloseWindow(WindowID.MenuBottomBarView);
     }
 }
        public override void HandleAction()
        {
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.SetMaskInfo(true, new Color(0.5f, 0.5f, 0.5f, 0.01f));

            this.DoCamMoveEnemyTower();
            base.AutoMoveNextStepWithDelay(0.3f);
        }
 public static void CheckFightAgain()
 {
     if (!PvpLevelStorage._lastStorage.HasValue)
     {
         return;
     }
     CtrlManager.OpenWindow(WindowID.ArenaModeView, null);
 }
        public override void HandleAction()
        {
            NewbieManager.Instance.EleBatFiveStartCheckSelOneWay();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.ShowTitleWithText(this._mainText);

            NewbieManager.Instance.PlayVoiceHintLoop(this._voiceResId, this._loopTime);
        }
 private void PlayGame(GameObject obj)
 {
     if (null != obj)
     {
         CtrlManager.OpenWindow(WindowID.ArenaModeView, null);
         CtrlManager.CloseWindow(WindowID.MenuBottomBarView);
     }
 }
Beispiel #29
0
        public override void HandleAction()
        {
            NewbieManager.Instance.DisableEleBatFiveTriggerCheck();
            CtrlManager.OpenWindow(WindowID.NewbieView, null);
            Singleton <NewbieView> .Instance.ShowEleBatFiveAttackHint();

            NewbieManager.Instance.PlayVoiceHintOnce(this._voiceResId);
        }
        private void OnClickButtonInfo(GameObject obj)
        {
            if (SacrificialCtrl.GetInstance().collectionState == CollectionState.Sending)
            {
                Singleton <TipView> .Instance.ShowViewSetText("服务器正忙  请稍后点击!!!", 1f);

                return;
            }
            if (null != obj && SacrificialCtrl.GetInstance().collectionState == CollectionState.Nothing)
            {
                SacrificialCtrl.GetInstance().collectionState = CollectionState.Sending;
                AudioMgr.Play("Play_Menu_click", null, false, false);
                InfoItem   component = obj.transform.parent.GetComponent <InfoItem>();
                ButtonType bT        = component.BT;
                switch (bT)
                {
                case ButtonType.CapShop:
                    CtrlManager.OpenWindow(WindowID.PurchasePopupView, null);
                    Singleton <PurchasePopupView> .Instance.onSuccess.Add(new Callback(this.AfterBuying));

                    Singleton <PurchasePopupView> .Instance.Show(GoodsSubject.Props, this.currEffectItem.ModelID.ToString(), 1, false);

                    SacrificialCtrl.GetInstance().collectionState = CollectionState.Nothing;
                    return;

                case ButtonType.MagicBottle:
                    MobaMessageManagerTools.SendClientMsg(ClientV2C.bottleSystemOpenView, null, false);
                    return;

                case (ButtonType)3:
IL_90:
                    if (bT == ButtonType.Wear)
                    {
                        MobaMessageManagerTools.SendClientMsg(ClientV2C.propviewCollectionWearEffect, 1, false);
                        return;
                    }
                    if (bT != ButtonType.Discharge)
                    {
                        return;
                    }
                    MobaMessageManagerTools.SendClientMsg(ClientV2C.propviewCollectionWearEffect, 2, false);
                    return;

                case ButtonType.Achievement:
                    CtrlManager.OpenWindow(WindowID.AchievementView, null);
                    return;

                case ButtonType.RankList:
                    CtrlManager.OpenWindow(WindowID.RankView, null);
                    return;

                case ButtonType.Battle:
                    CtrlManager.OpenWindow(WindowID.ArenaModeView, null);
                    return;
                }
                goto IL_90;
            }
        }