Ejemplo n.º 1
0
    protected void ShowHookQuitUI()
    {
        if (EntityWorld.Instance.EntSelf == null)
        {
            return;
        }
        InstanceManager.StopAllClientAI(true);
        if (UIManagerControl.Instance.IsOpen("BattleBackpackUI"))
        {
            UIManagerControl.Instance.HideUI("BattleBackpackUI");
        }
        CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();

        if (commonBattlePassUI)
        {
            commonBattlePassUI.UpdateHookReward(this.fixRealTimeExp, this.fixRealTimeGold, (this.CurWave - 1 >= 0) ? (this.CurWave - 1) : 0, delegate
            {
                BattleBackpackUI battleBackpackUI = UIManagerControl.Instance.OpenUI("BattleBackpackUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as BattleBackpackUI;
                battleBackpackUI.SetTitleName(GameDataUtils.GetChineseContent(511612, false));
                battleBackpackUI.ShowTips(false, string.Empty);
                this.UpdateRealTimeDrop(InstanceManager.RealTimeDropCache);
            }, new Action(this.ExitHookInstance));
            commonBattlePassUI.PlayAnimation(InstanceResultType.Result);
            this.autoExitTimer = TimerHeap.AddTimer(this.autoExitTime, 0, new Action(this.ExitHookInstance));
        }
        else
        {
            this.ExitHookInstance();
        }
    }
Ejemplo n.º 2
0
 public override void ShowWinUI()
 {
     base.ShowWinUI();
     UIManagerControl.Instance.HideUI("BattleUI");
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         int num = (base.InstanceResult.startStage - 1 <= 0) ? 1 : (base.InstanceResult.startStage - 1);
         if (num == base.InstanceResult.endStage && base.InstanceResult.copyRewards.get_Count() <= 0)
         {
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
             return;
         }
         CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();
         commonBattlePassUI.PlayAnimation(InstanceResultType.Result);
         commonBattlePassUI.BtnStatictisVisibity  = false;
         commonBattlePassUI.BtnAgainVisibility    = false;
         commonBattlePassUI.BtnMultipleVisibility = false;
         commonBattlePassUI.BtnTipTextVisibility  = false;
         commonBattlePassUI.PassTimeVisibility    = false;
         commonBattlePassUI.UpdateScResultUI(base.InstanceResult);
         commonBattlePassUI.ExitCallback = delegate
         {
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
     });
 }
Ejemplo n.º 3
0
    private void ShowResultUI()
    {
        UIManagerControl.Instance.HideUI("BattleUI");
        UIManagerControl.Instance.HideUI("BattleBuyBuffUI");
        if (DialogBoxUIViewModel.Instance != null)
        {
            DialogBoxUIViewModel.Instance.Close();
        }
        CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();

        commonBattlePassUI.PlayAnimation(InstanceResultType.Result);
        commonBattlePassUI.BtnStatictisVisibity  = false;
        commonBattlePassUI.BtnAgainVisibility    = false;
        commonBattlePassUI.BtnMultipleVisibility = true;
        commonBattlePassUI.BtnTipTextVisibility  = true;
        commonBattlePassUI.PassTimeVisibility    = false;
        commonBattlePassUI.DropRewardVisibility  = false;
        commonBattlePassUI.UpdateExperienceCopyUI(base.InstanceResult, base.InstanceResult.rewardBatch);
        commonBattlePassUI.ExitCallback = delegate
        {
            SpecialFightManager.Instance.ExitExperienceReq(false);
        };
        commonBattlePassUI.MultipleCallback = delegate
        {
            SpecialFightManager.Instance.SendGetExperienceCopyReward(true);
        };
    }
Ejemplo n.º 4
0
    public override void ShowWinUI()
    {
        base.ShowWinUI();
        UIManagerControl.Instance.HideUI("BattleUI");
        CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();

        if (commonBattlePassUI != null)
        {
            commonBattlePassUI.PlayAnimation(InstanceResultType.Win);
            commonBattlePassUI.UpdateDungeonRewards(base.InstanceResult.normalPrize);
            commonBattlePassUI.BtnStatictisVisibity  = false;
            commonBattlePassUI.BtnAgainVisibility    = false;
            commonBattlePassUI.BtnMultipleVisibility = false;
            commonBattlePassUI.BtnTipTextVisibility  = false;
            if (base.InstanceResult != null && base.InstanceResult.remainTimes <= 0)
            {
                commonBattlePassUI.NoRewardTipText = GameDataUtils.GetChineseContent(505047, false);
            }
            commonBattlePassUI.ExitCallback = delegate
            {
                EliteDungeonManager.Instance.SendEliteExitReq();
            };
            commonBattlePassUI.OnCountDownToExit(5, delegate
            {
                EliteDungeonManager.Instance.SendEliteExitReq();
            });
        }
    }
Ejemplo n.º 5
0
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();

        if (commonBattlePassUI)
        {
            commonBattlePassUI.UpdateDarkTrialReward(false, InstanceManager.CurUsedTime, (InstanceManager.CurrentInstanceBatch - 1 >= 0) ? (InstanceManager.CurrentInstanceBatch - 1) : 0, this.fixRealTimeExp, this.fixRealTimeGold, this.fixRealTimeDrop, new Action(this.ExitDarkTrialInstance));
            commonBattlePassUI.UpdateDungeonRewards(this.instanceResult.items);
            commonBattlePassUI.PlayAnimation(InstanceResultType.TimesUp);
            commonBattlePassUI.OnCountDownToExit(5, new Action(this.ExitDarkTrialInstance));
        }
    }
Ejemplo n.º 6
0
 public override void ShowLoseUI()
 {
     base.ShowLoseUI();
     UIManagerControl.Instance.HideUI("BattleUI");
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();
         commonBattlePassUI.PlayAnimation(InstanceResultType.Lose);
         commonBattlePassUI.UpdatePvpInstanceUI(base.InstanceResult);
         commonBattlePassUI.BtnExitContent = GameDataUtils.GetChineseContent(505114, false);
         commonBattlePassUI.ExitCallback   = delegate
         {
             PVPManager.Instance.SendArenaRoomDestoryReq();
         };
     });
 }
Ejemplo n.º 7
0
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        UIManagerControl.Instance.HideUI("BattleUI");
        CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();

        if (commonBattlePassUI != null)
        {
            commonBattlePassUI.PlayAnimation(InstanceResultType.Result);
            commonBattlePassUI.UpdateGuildBossReward(base.InstanceResult);
            commonBattlePassUI.BtnStatictisVisibity  = false;
            commonBattlePassUI.BtnAgainVisibility    = false;
            commonBattlePassUI.BtnMultipleVisibility = false;
            commonBattlePassUI.BtnTipTextVisibility  = false;
            commonBattlePassUI.ExitCallback          = delegate
            {
                GuildBossManager.Instance.SendExitGuildBossBattleReq();
            };
        }
    }
Ejemplo n.º 8
0
 public override void ShowWinUI()
 {
     base.ShowWinUI();
     UIManagerControl.Instance.HideUI("BattleUI");
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();
         commonBattlePassUI.PlayAnimation(InstanceResultType.Result);
         commonBattlePassUI.BtnStatictisVisibity  = false;
         commonBattlePassUI.BtnAgainVisibility    = false;
         commonBattlePassUI.BtnMultipleVisibility = false;
         commonBattlePassUI.BtnTipTextVisibility  = true;
         commonBattlePassUI.PassTimeVisibility    = true;
         commonBattlePassUI.UpdateTowerCopyUI(base.InstanceResult);
         commonBattlePassUI.ExitCallback = delegate
         {
             EventDispatcher.Broadcast("GuideManager.InstanceExit");
             EventDispatcher.Broadcast("GuideManager.InstanceWin");
             DefendFightManager.Instance.ExitDefendFightReq(false);
         };
     });
 }
Ejemplo n.º 9
0
 public override void ShowWinUI()
 {
     base.ShowWinUI();
     UIManagerControl.Instance.HideUI("BattleUI");
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();
         commonBattlePassUI.PlayAnimation(InstanceResultType.Win);
         commonBattlePassUI.BtnStatictisVisibity  = true;
         commonBattlePassUI.BtnAgainVisibility    = false;
         commonBattlePassUI.BtnMultipleVisibility = false;
         commonBattlePassUI.BtnTipTextVisibility  = true;
         commonBattlePassUI.UpdateDungeonRewards(base.InstanceResult.normalPrize);
         commonBattlePassUI.ExitCallback = delegate
         {
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         commonBattlePassUI.OnCountDownToExit(5, delegate
         {
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         });
     });
 }
Ejemplo n.º 10
0
 public override void ShowWinUI()
 {
     base.ShowWinUI();
     UIManagerControl.Instance.HideUI("BattleUI");
     this.showWinUITimer = TimerHeap.AddTimer(5500u, 0, delegate
     {
         CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();
         commonBattlePassUI.PlayAnimation(InstanceResultType.Win);
         commonBattlePassUI.BtnStatictisVisibity  = false;
         commonBattlePassUI.BtnAgainVisibility    = false;
         commonBattlePassUI.BtnMultipleVisibility = false;
         commonBattlePassUI.BtnTipTextVisibility  = true;
         commonBattlePassUI.SetDropItems(this.FixInstanceDrop());
         commonBattlePassUI.ExitCallback = delegate
         {
             WildBossManager.Instance.ExitWildBoss();
         };
         commonBattlePassUI.OnCountDownToExit(5, delegate
         {
             WildBossManager.Instance.ExitWildBoss();
         });
     });
 }
Ejemplo n.º 11
0
 public override void ShowWinUI()
 {
     base.ShowWinUI();
     InstanceManager.StopAllClientAI(true);
     UIManagerControl.Instance.HideUI("BattleUI");
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         UIManagerControl.Instance.HideUI("BattleUI");
         CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();
         if (commonBattlePassUI != null)
         {
             commonBattlePassUI.PlayAnimation(InstanceResultType.Win);
             commonBattlePassUI.UpdateEliteUI(base.InstanceResult.item);
             commonBattlePassUI.BtnStatictisVisibity  = false;
             commonBattlePassUI.BtnAgainVisibility    = false;
             commonBattlePassUI.BtnMultipleVisibility = false;
             commonBattlePassUI.BtnTipTextVisibility  = false;
             commonBattlePassUI.ExitCallback          = delegate
             {
                 TramcarManager.Instance.SendExitProtectFightReq();
             };
         }
     });
 }
Ejemplo n.º 12
0
 public override void ShowWinUI()
 {
     base.ShowWinUI();
     if (this.mBattleUI != null)
     {
         this.mBattleUI.BtnQuitAction = null;
     }
     if (DungeonManager.Instance.DungeonInstanceType == DungeonManager.InsType.FIELD)
     {
         return;
     }
     this.mProgressUI.PlayFinishSpine(DungeonManager.Instance.DungeonInstanceType, base.InstanceResult.winnerId == EntityWorld.Instance.EntSelf.ID);
     TimerHeap.AddTimer(4000u, 0, delegate
     {
         UIManagerControl.Instance.HideUI("BattleUI");
         CommonBattlePassUI commonBattlePassUI = LinkNavigationManager.OpenCommonBattlePassUI();
         if (commonBattlePassUI != null)
         {
             commonBattlePassUI.PlayAnimation(InstanceResultType.Win);
             commonBattlePassUI.UpdateDungeonRewards(base.InstanceResult.items);
             commonBattlePassUI.BtnStatictisVisibity  = false;
             commonBattlePassUI.BtnAgainVisibility    = false;
             commonBattlePassUI.BtnMultipleVisibility = false;
             commonBattlePassUI.BtnTipTextVisibility  = false;
             if (DungeonManager.Instance.DungeonInstanceType == DungeonManager.InsType.WEAPON)
             {
                 commonBattlePassUI.NormalRewardVisibility = false;
                 commonBattlePassUI.WeaponRewardId         = DungeonManager.Instance.WeaponModelId;
             }
             commonBattlePassUI.ExitCallback = delegate
             {
                 DungeonManager.Instance.SendExitDungeonReq();
             };
         }
     });
 }