Beispiel #1
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetChineseContent(510109, false), GameDataUtils.GetChineseContent(510110, false), delegate
            {
            }, delegate
            {
                LinkNavigationManager.OpenBattleUI();
            }, delegate
            {
                this.forceExit = true;
                NetworkManager.Send(new ExitAreaBattleReq(), ServerType.Data);
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_orange_1", null);
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
    }
Beispiel #2
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetNoticeText(100), GameDataUtils.GetChineseContent(502269, false), delegate
            {
            }, delegate
            {
                BallElement.Instance.shouldChangePosImmediately = false;
                LinkNavigationManager.OpenBattleUI();
            }, delegate
            {
                EventDispatcher.Broadcast("GuideManager.InstanceExit");
                ElementInstanceManager.Instance.SendExitElementCopyReq(delegate
                {
                });
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_orange_1", null);
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
    }
Beispiel #3
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel(GameDataUtils.GetNoticeText(100), GameDataUtils.GetChineseContent(510110, false), null, delegate
            {
                MultiPVPManager.Instance.SendLeaveMultiPvpReq();
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_yellow_1", null, true);
            GlobalBattleDialogUIView.Instance.SetMask(0.7f, true, false);
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowPeakBattleSlot(true);
        battleUI.ShowBattleTimeUI(true);
        battleUI.SetPeakBattleKillAndDeathNumText(0, 0);
        battleUI.SetPeakBattleVSText(0, 0);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
    }
Beispiel #4
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetChineseContent(512048, false), GameDataUtils.GetChineseContent(512049, false), delegate
            {
                InstanceManager.TryPause();
            }, delegate
            {
                InstanceManager.TryResume();
                LinkNavigationManager.OpenBattleUI();
            }, delegate
            {
                InstanceManager.TryResume();
                SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_orange_1", null);
            GlobalBattleDialogUIView.Instance.isClick = false;
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.ShowCallBoss(true);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
    }
Beispiel #5
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            DungeonManager.Instance.shouldNotShowLoseUI = true;
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetNoticeText(100), GameDataUtils.GetNoticeText(101), delegate
            {
            }, delegate
            {
                LinkNavigationManager.OpenBattleUI();
            }, delegate
            {
                EliteDungeonManager.Instance.SendEliteExitReq();
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_yellow_1", null);
            GlobalBattleDialogUIView.Instance.SetMask(0.7f, true, false);
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.ShowDamageRankingUI(true);
        battleUI.ShowGlobalRank(true, BattleUI.RankRewardType.Text);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
    }
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel(GameDataUtils.GetNoticeText(100), GameDataUtils.GetChineseContent(511999, false), delegate
            {
                LinkNavigationManager.OpenBattleUI();
            }, delegate
            {
                ChangeCareerInstanceManager.Instance.IsQuit = true;
                LocalInstanceHandler.Instance.Finish(false);
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_yellow_1", null, true);
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
    }
    public override void ShowBattleUI()
    {
        if (this.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = null;
        battleUI.IsPauseCheck  = false;
        battleUI.IsInAuto      = (base.InstanceData.autoFight == 0);
    }
Beispiel #8
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetChineseContent(501002, false), GameDataUtils.GetChineseContent(513529, false), delegate
            {
                InstanceManager.TryPause();
            }, delegate
            {
                InstanceManager.TryResume();
                LinkNavigationManager.OpenBattleUI();
            }, delegate
            {
                InstanceManager.TryResume();
                EventDispatcher.Broadcast("GuideManager.InstanceExit");
                DefendFightManager.Instance.ExitDefendFightReq(false);
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_orange_1", null);
            GlobalBattleDialogUIView.Instance.isClick = false;
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.ShowSpecialInstanceBattleUI(true);
        battleUI.InitSpecialInstanceBattleUI();
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
        RewardPreviewUI.CopyType type = RewardPreviewUI.CopyType.NONE;
        switch (DefendFightManager.Instance.SelectDetailMode)
        {
        case DefendFightMode.DFMD.Hold:
            type = RewardPreviewUI.CopyType.GUARD;
            break;

        case DefendFightMode.DFMD.Protect:
            type = RewardPreviewUI.CopyType.ESCORT;
            break;

        case DefendFightMode.DFMD.Save:
            type = RewardPreviewUI.CopyType.ATTACK;
            break;
        }
        battleUI.ShowRewardPreviewUI(true, type, 0L, 0L);
    }
Beispiel #9
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetChineseContent(501002, false), GameDataUtils.GetChineseContent(513529, false), delegate
            {
                InstanceManager.TryPause();
            }, delegate
            {
                InstanceManager.TryResume();
                LinkNavigationManager.OpenBattleUI();
            }, delegate
            {
                InstanceManager.TryResume();
                SpecialFightManager.Instance.ExitExperienceReq(false);
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_orange_1", null);
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.ShowSpecialBuffUI(true);
        battleUI.ShowSpecialInstanceBattleUI(true);
        battleUI.InitSpecialInstanceBattleUI();
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
        int  num      = InstanceManager.CurrentInstanceBatch - 1;
        long batchExp = SpecialFightManager.Instance.GetBatchExp(num);

        battleUI.ShowRewardPreviewUI(true, RewardPreviewUI.CopyType.EXP, batchExp * (long)num, SpecialFightManager.Instance.GetBatchExp(InstanceManager.CurrentInstanceBatch));
        this.BeforeLevel  = EntityWorld.Instance.EntSelf.Lv;
        this.BeforeExp    = EntityWorld.Instance.EntSelf.Exp;
        this.BeforeExpLmt = EntityWorld.Instance.EntSelf.ExpLmt;
        Debug.Log(string.Concat(new object[]
        {
            "进副本前 等级:Lv.",
            this.BeforeLevel,
            ", 已有经验:",
            this.BeforeExp,
            ", 升级经验:",
            this.BeforeExpLmt
        }));
    }
 public override void ShowBattleUI()
 {
     if (base.InstanceResult != null)
     {
         return;
     }
     this.mBattleUI = LinkNavigationManager.OpenBattleUI();
     this.mBattleUI.BtnQuitAction = delegate
     {
         DungeonManager.Instance.shouldNotShowLoseUI = true;
         UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
         GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetNoticeText(100), GameDataUtils.GetNoticeText(101), delegate
         {
             InstanceManager.TryPause();
         }, delegate
         {
             InstanceManager.TryResume();
             LinkNavigationManager.OpenBattleUI();
         }, delegate
         {
             InstanceManager.TryResume();
             EventDispatcher.Broadcast("GuideManager.InstanceExit");
             LocalInstanceHandler.Instance.Finish(false);
         }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_yellow_1", null);
         GlobalBattleDialogUIView.Instance.isClick = false;
     };
     this.mBattleUI.ResetAllInstancePart();
     this.mBattleUI.ShowBattleTimeUI(true);
     this.mBattleUI.IsPauseCheck = false;
     this.mBattleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
     if (!UIManagerControl.Instance.IsOpen("TaskProgressUI"))
     {
         this.mProgressUI = (UIManagerControl.Instance.OpenUI("TaskProgressUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as TaskProgressUI);
     }
     if (DungeonManager.Instance.DungeonInstanceType == DungeonManager.InsType.WEAPON)
     {
         this.mProgressUI.PlayWeaponEffect(DungeonManager.Instance.WeaponModelId);
         TimerHeap.AddTimer(4000u, 0, delegate
         {
             BattleTimeManager.Instance.ClientSetBattleTime(base.InstanceData.time);
             LocalInstanceHandler.Instance.Start();
         });
     }
 }
 public override void ShowBattleUI()
 {
     if (base.InstanceResult != null)
     {
         return;
     }
     this.battleUI = LinkNavigationManager.OpenBattleUI();
     this.battleUI.BtnQuitAction = delegate
     {
         GuildWarManager.Instance.RemoveDieCountDown();
         GuildWarManager.Instance.SendLeaveGuildBattleReq();
     };
     this.battleUI.ResetAllInstancePart();
     this.battleUI.ShowGuildWarCityResouce(true);
     this.battleUI.SetGuildWarCityResouceInfo(GuildWarManager.Instance.MyGuildWarResourceInfo, GuildWarManager.Instance.EnemyGuildWarResourceInfo);
     this.mineAndReportUI = (UIManagerControl.Instance.OpenUI("MineAndReportUI", this.battleUI.MineAndReportUISlot, false, UIType.NonPush) as MineAndReportUI);
     if (this.mineAndReportUI)
     {
         this.battleUI.ShowTopLeftTabs(true, new BattleUI.TopLeftTabData[]
         {
             new BattleUI.TopLeftTabData
             {
                 name              = GameDataUtils.GetChineseContent(515116, false),
                 showAction        = new Action <bool>(this.mineAndReportUI.ShowMine),
                 stretchGameObject = this.battleUI.MineAndReportUISlot.get_gameObject()
             },
             new BattleUI.TopLeftTabData
             {
                 name              = GameDataUtils.GetChineseContent(515117, false),
                 showAction        = new Action <bool>(this.mineAndReportUI.ShowReport),
                 stretchGameObject = this.battleUI.MineAndReportUISlot.get_gameObject()
             }
         });
     }
     this.TryUpdateOwnProgressUI();
     this.TryUpdateDoubleTime();
     this.TryUpdateBuff();
     this.battleUI.IsPauseCheck = false;
     this.battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
 }
 public override void ShowBattleUI()
 {
     this.battleUI = LinkNavigationManager.OpenBattleUI();
     this.battleUI.BtnQuitAction = delegate
     {
         UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
         GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetChineseContent(510109, false), GameDataUtils.GetChineseContent(50739, false), delegate
         {
         }, delegate
         {
             LinkNavigationManager.OpenBattleUI();
         }, delegate
         {
             this.ExitDarkTrialInstance();
         }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_orange_1", null);
         GlobalBattleDialogUIView.Instance.isClick = false;
     };
     this.battleUI.ResetAllInstancePart();
     this.battleUI.ShowBattleTimeUI(true);
     this.battleUI.ShowGlobalRank(true, BattleUI.RankRewardType.Icon);
     this.battleUI.ShowTopLeftTabs(true, new BattleUI.TopLeftTabData[]
     {
         new BattleUI.TopLeftTabData
         {
             name              = GameDataUtils.GetChineseContent(515128, false),
             showAction        = new Action <bool>(this.battleUI.TabShowGlobalRank),
             stretchGameObject = this.battleUI.GlobalRank
         },
         new BattleUI.TopLeftTabData
         {
             name              = GameDataUtils.GetChineseContent(515127, false),
             showAction        = new Action <bool>(this.battleUI.TabShowTeamMember),
             stretchGameObject = this.battleUI.TeamMember
         }
     });
     this.battleUI.ShowBackpackPreviewBtn(true);
     this.battleUI.IsPauseCheck = false;
     this.battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
 }
Beispiel #13
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel(GameDataUtils.GetChineseContent(510109, false), GameDataUtils.GetChineseContent(505191, false), delegate
            {
            }, delegate
            {
                WildBossManager.Instance.InitiativeQuit();
            }, GameDataUtils.GetChineseContent(621272, false), GameDataUtils.GetChineseContent(621271, false), "button_orange_1", "button_yellow_1", null, true);
            GlobalBattleDialogUIView.Instance.isClick = false;
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
    }
Beispiel #14
0
    public override void ShowBattleUI()
    {
        if (base.InstanceResult != null)
        {
            return;
        }
        BattleUI battleUI = LinkNavigationManager.OpenBattleUI();

        battleUI.BtnQuitAction = delegate
        {
            UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
            GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel(GameDataUtils.GetNoticeText(100), GameDataUtils.GetNoticeText(101), null, delegate
            {
                GuildBossManager.Instance.SendExitGuildBossBattleReq();
            }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_yellow_1", null, true);
            GlobalBattleDialogUIView.Instance.isClick = true;
        };
        battleUI.ResetAllInstancePart();
        battleUI.ShowBattleTimeUI(true);
        battleUI.IsPauseCheck = false;
        battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
        this.IsGetResult      = false;
        GuildBossManager.Instance.CheckShowGuildBossBattleCD();
    }
Beispiel #15
0
 public override void ShowBattleUI()
 {
     if (base.InstanceResult != null)
     {
         return;
     }
     this.battleUI = LinkNavigationManager.OpenBattleUI();
     this.battleUI.BtnQuitAction = delegate
     {
         UIManagerControl.Instance.OpenUI("GlobalBattleDialogUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush);
         GlobalBattleDialogUIViewModel.Instance.ShowAsOKCancel_as(GameDataUtils.GetChineseContent(510109, false), GameDataUtils.GetChineseContent(511627, false), delegate
         {
         }, delegate
         {
             LinkNavigationManager.OpenBattleUI();
         }, delegate
         {
             this.InitiativeExitHookInstance();
         }, GameDataUtils.GetNoticeText(103), GameDataUtils.GetNoticeText(102), "button_orange_1", "button_orange_1", null);
         GlobalBattleDialogUIView.Instance.isClick = false;
     };
     this.battleUI.ResetAllInstancePart();
     this.battleUI.ShowBattleTimeUI(true);
     this.battleUI.ShowArea(true);
     this.battleUI.SetAreaName(HuntManager.Instance.RoomName);
     this.battleUI.ShowPlayerNum(true);
     this.updatePlayerTimer = TimerHeap.AddTimer(0u, this.updatePlayerInterval, new Action(this.UpdatePlayerNum));
     if (this.CurWave >= 0 && this.battleUI)
     {
         this.battleUI.ShowBatchText(true);
         this.battleUI.SetBatchTextNum(this.CurWave);
     }
     if (!this.CurRoomInPeace && this.CurBossProperty >= 0 && this.battleUI)
     {
         this.battleUI.ShowBossProbability(true);
         this.battleUI.SetBossProbabilityText(string.Format(GameDataUtils.GetChineseContent(511611, false), (double)this.CurBossProperty * 0.1));
     }
     this.battleUI.ShowBattleMode(true);
     if (this.IsSelfPeaceMode)
     {
         if (TimeManager.Instance.PreciseServerSecond < this.pkModeCDEnd)
         {
             this.battleUI.ShowPKModeCD(true);
             this.battleUI.SetPKModeCD((float)this.PKModeDefaultCD, (float)(this.pkModeCDEnd - TimeManager.Instance.PreciseServerSecond) / (float)this.PKModeDefaultCD);
         }
         else
         {
             this.battleUI.ShowPKModeBtn(true);
         }
     }
     else if (this.IsSelfPKMode)
     {
         if (TimeManager.Instance.PreciseServerSecond < this.peaceModeCDEnd)
         {
             this.battleUI.ShowPeaceModeCD(true);
             this.battleUI.SetPeaceModeCD((float)this.PeaceModeDefaultCD, (float)(this.peaceModeCDEnd - TimeManager.Instance.PreciseServerSecond) / (float)this.PeaceModeDefaultCD);
         }
         else
         {
             this.battleUI.ShowPeaceModeBtn(true);
         }
     }
     if (EntityWorld.Instance.EntSelf != null)
     {
         long defaultBatchExp = 0L;
         if (DataReader <GuaJiQuYuPeiZhi> .Contains(HuntManager.Instance.AreaId))
         {
             defaultBatchExp = DataReader <GuaJiQuYuPeiZhi> .Get(HuntManager.Instance.AreaId).exp;
         }
         this.battleUI.ShowRewardPreviewUI(true, RewardPreviewUI.CopyType.HOOK, this.fixRealTimeExp, defaultBatchExp);
     }
     this.battleUI.ShowBackpackBtn(true);
     this.battleUI.IsPauseCheck = false;
     this.battleUI.IsInAuto     = (base.InstanceData.autoFight == 0);
     BattleTimeManager.Instance.ServerSetBattleTime(HuntManager.Instance.EnterTick);
     this.ShowTaskProgress();
 }