Example #1
0
 public override void ShowLoseUI()
 {
     base.ShowLoseUI();
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         UIManagerControl.Instance.HideUI("BattleUI");
         BattleLoseUI battleLoseUI  = LinkNavigationManager.OpenBattleLoseUI();
         battleLoseUI.BtnExitAction = delegate
         {
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnEquipQuaAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_EQUIPQUALITY";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnEquipLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_EQUIPLEVEL";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnGemLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_GEMLEVEL";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnSkillAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_SKILL";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnPetLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETLEVEL";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnPetStarAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETSTRA";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnPetSkillAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETSKILL";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnGodSoldierAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_GODSOLDIER";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.BtnWingAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_WING";
             SurvivalManager.Instance.SendExitSecretAreaChallengeReq();
         };
         battleLoseUI.ShowBtnAgainBtn(false);
         battleLoseUI.ShowBtnDamageCal(false);
     });
 }
Example #2
0
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();

        battleLoseUI.ShowBtnAgainBtn(false);
        battleLoseUI.ShowBtnDamageCal(false);
        battleLoseUI.ShowRecommendPower(false, 0);
        battleLoseUI.BtnExitAction = delegate
        {
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnAgainAction    = null;
        battleLoseUI.BtnEquipQuaAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_EQUIPQUALITY";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnEquipLvAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_EQUIPLEVEL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnGemLvAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_GEMLEVEL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnSkillAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_SKILL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnPetLvAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_PETLEVEL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnPetStarAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_PETSTRA";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnPetSkillAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_PETSKILL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnGodSoldierAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_GODSOLDIER";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnWingAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_WING";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.OnCountDown(5, new Action(WildBossManager.Instance.ExitWildBoss));
    }
Example #3
0
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();

        battleLoseUI.BtnExitAction = delegate
        {
            DefendFightManager.Instance.ExitDefendFightReq(false);
        };
        battleLoseUI.ShowBtnAgainBtn(false);
        battleLoseUI.ShowBtnDamageCal(false);
    }
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        InstanceManager.StopAllClientAI(true);
        BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();

        battleLoseUI.BtnExitAction = delegate
        {
            TramcarManager.Instance.SendExitProtectFightReq();
        };
        battleLoseUI.ShowBtnAgainBtn(false);
        battleLoseUI.ShowBtnDamageCal(false);
    }
Example #5
0
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        InstanceManager.StopAllClientAI(true);
        BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();

        battleLoseUI.BtnExitAction = delegate
        {
            SpecialFightManager.Instance.ExitExperienceReq(false);
        };
        battleLoseUI.ShowBtnAgainBtn(false);
        battleLoseUI.ShowBtnDamageCal(false);
    }
Example #6
0
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        InstanceManager.StopAllClientAI(true);
        BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();

        battleLoseUI.BtnExitAction = delegate
        {
            ElementInstanceManager.Instance.SendExitElementCopyReq(delegate
            {
            });
            BallElement.Instance.shouldChangePosImmediately = false;
        };
        battleLoseUI.BtnAgainAction = null;
        battleLoseUI.BtnPetLvAction = delegate
        {
            ElementInstanceManager.Instance.SendExitElementCopyReq(delegate
            {
                EventDispatcher.Broadcast("SHOW_PETLEVEL");
            });
        };
        battleLoseUI.ShowBtnAgainBtn(false);
        battleLoseUI.ShowBtnDamageCal(false);
    }
Example #7
0
 public override void ShowLoseUI()
 {
     base.ShowLoseUI();
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();
         battleLoseUI.ShowBtnAgainBtn(false);
         battleLoseUI.ShowBtnDamageCal(true);
         battleLoseUI.ShowRecommendPower(false, 0);
         battleLoseUI.OnCountDown(5, delegate
         {
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         });
         battleLoseUI.BtnExitAction = delegate
         {
             battleLoseUI.StopCountDown();
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnAgainAction    = null;
         battleLoseUI.BtnEquipQuaAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_EQUIPQUALITY";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnEquipLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_EQUIPLEVEL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnGemLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_GEMLEVEL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnSkillAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_SKILL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnPetLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETLEVEL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnPetStarAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETSTRA";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnPetSkillAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETSKILL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnGodSoldierAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_GODSOLDIER";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnWingAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_WING";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
     });
 }
 public override void ShowLoseUI()
 {
     base.ShowLoseUI();
     if (this.mBattleUI != null)
     {
         this.mBattleUI.BtnQuitAction = null;
     }
     if (DungeonManager.Instance.DungeonInstanceType == DungeonManager.InsType.FIELD)
     {
         return;
     }
     if (DungeonManager.Instance.DungeonInstanceType == DungeonManager.InsType.WEAPON)
     {
         this.mProgressUI.PlayFinishSpine(DungeonManager.Instance.DungeonInstanceType, base.InstanceResult.winnerId == EntityWorld.Instance.EntSelf.ID);
         return;
     }
     if (DungeonManager.Instance.shouldNotShowLoseUI)
     {
         DungeonManager.Instance.shouldNotShowLoseUI = false;
         DungeonManager.Instance.SendExitDungeonReq();
         UIManagerControl.Instance.HideUI("TaskProgressUI");
     }
     else
     {
         TimerHeap.AddTimer(2000u, 0, delegate
         {
             BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();
             UIManagerControl.Instance.HideUI("TaskProgressUI");
             battleLoseUI.BtnExitAction = delegate
             {
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnEquipQuaAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_EQUIPQUALITY";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnEquipLvAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_EQUIPLEVEL";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnGemLvAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_GEMLEVEL";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnSkillAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_SKILL";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnPetLvAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_PETLEVEL";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnPetStarAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_PETSTRA";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnPetSkillAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_PETSKILL";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnGodSoldierAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_GODSOLDIER";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.BtnWingAction = delegate
             {
                 SceneLoadedUISetting.CurrentType = "SHOW_WING";
                 DungeonManager.Instance.SendExitDungeonReq();
             };
             battleLoseUI.ShowBtnAgainBtn(false);
             battleLoseUI.ShowBtnDamageCal(false);
         });
     }
 }