// Token: 0x0600918B RID: 37259 RVA: 0x002A2840 File Offset: 0x002A0A40
        private void ActivityNoticeUIController_ActivityClick(int activityId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ActivityNoticeUIController_ActivityClickInt32_hotfix != null)
            {
                this.m_ActivityNoticeUIController_ActivityClickInt32_hotfix.call(new object[]
                {
                    this,
                    activityId2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int activityId             = activityId2;
            ActivityNoticeUITask $this = this;

            CommonUIController.Instance.StartShowFadeOutLoadingFadeIn(delegate
            {
                CommonUIController.Instance.HideFadeOutLoadingFadeIn();
                $this.Pause();
                WorldUITask.StartGetPathTargetUITask(new GetPathData
                {
                    PathType = GetPathType.GetPathType_Activity,
                    ID       = activityId
                }, null, null);
            }, FadeStyle.Black, -1f, -1f);
        }
        // Token: 0x0600D97C RID: 55676 RVA: 0x003B11EC File Offset: 0x003AF3EC
        private void CooperateBattleUIController_OnStartCooperateBattleLevel(ConfigDataCooperateBattleLevelInfo levelInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CooperateBattleUIController_OnStartCooperateBattleLevelConfigDataCooperateBattleLevelInfo_hotfix != null)
            {
                this.m_CooperateBattleUIController_OnStartCooperateBattleLevelConfigDataCooperateBattleLevelInfo_hotfix.call(new object[]
                {
                    this,
                    levelInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (this.m_cooperateBattleInfo == null)
            {
                return;
            }
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanAttackCooperateBattleLevel(levelInfo.ID);

            if (num == 0)
            {
                UIIntentReturnable intent = TeamUITask.CreateIntent(this.m_currIntent, GameFunctionType.GameFunctionType_CooperateBattle, this.m_cooperateBattleInfo.ID, levelInfo.ID);
                UIManager.Instance.StartUITask(intent, true, false, new Action(this.TeamUITask_OnLoadAllResCompleted));
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }
예제 #3
0
        // Token: 0x06009BC0 RID: 39872 RVA: 0x002C50BC File Offset: 0x002C32BC
        private void ArenaSelectUIController_OnShowOfflineArena()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ArenaSelectUIController_OnShowOfflineArena_hotfix != null)
            {
                this.m_ArenaSelectUIController_OnShowOfflineArena_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;

            if (projectLPlayerContext.IsArenaInSettleTime())
            {
                CommonUIController.Instance.ShowErrorMessage(-2017, 2f, null, true);
                return;
            }
            CommonUIController.Instance.StartShowFadeOutLoadingFadeIn(delegate
            {
                CommonUIController.Instance.HideFadeOutLoadingFadeIn();
                WorldUITask.WorldUIController_ShowHide(true, false);
                base.Pause();
                if (this.EventOnShowArena != null)
                {
                    this.EventOnShowArena(ArenaUIType.Offline, this.m_isBattleReport, this.m_currIntent);
                }
            }, FadeStyle.Black, -1f, -1f);
        }
예제 #4
0
 // Token: 0x06009BBA RID: 39866 RVA: 0x002C4CAC File Offset: 0x002C2EAC
 protected override bool OnResume(UIIntent intent)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnResumeUIIntent_hotfix != null)
     {
         return(Convert.ToBoolean(this.m_OnResumeUIIntent_hotfix.call(new object[]
         {
             this,
             intent
         })));
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     WorldUITask.ShowWorld(true);
     return(base.OnResume(intent));
 }
 // Token: 0x0600FF93 RID: 65427 RVA: 0x004310CC File Offset: 0x0042F2CC
 private void EquipmentForge_OnGotoGetPath(GetPathData getPath, NeedGoods needGoods = null)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_EquipmentForge_OnGotoGetPathGetPathDataNeedGoods_hotfix != null)
     {
         this.m_EquipmentForge_OnGotoGetPathGetPathDataNeedGoods_hotfix.call(new object[]
         {
             this,
             getPath,
             needGoods
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     base.Pause();
     WorldUITask.StartGetPathTargetUITask(getPath, this.m_currIntent, needGoods);
 }
예제 #6
0
        // Token: 0x0600F7C5 RID: 63429 RVA: 0x00417088 File Offset: 0x00415288
        private void GuildMassiveCombatUIController_OnTeamBattle(GuildMassiveCombatStronghold strongHold)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GuildMassiveCombatUIController_OnTeamBattleGuildMassiveCombatStronghold_hotfix != null)
            {
                this.m_GuildMassiveCombatUIController_OnTeamBattleGuildMassiveCombatStronghold_hotfix.call(new object[]
                {
                    this,
                    strongHold
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;
            TeamRoomSetting   teamRoomSetting  = new TeamRoomSetting();

            teamRoomSetting.GameFunctionTypeId = GameFunctionType.GameFunctionType_GuildMassiveCombat;
            teamRoomSetting.LocationId         = strongHold.LevelId;
            teamRoomSetting.JoinMinLevel       = 1;
            teamRoomSetting.JoinMaxLevel       = configDataLoader.ConfigableConstId_PlayerLevelMaxLevel;
            teamRoomSetting.Authority          = TeamRoomAuthority.GuildMassiveCombat;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanCreateTeam(teamRoomSetting);

            if (num == 0)
            {
                TeamRoomCreateNetTask teamRoomCreateNetTask = new TeamRoomCreateNetTask(teamRoomSetting);
                teamRoomCreateNetTask.EventOnStop += delegate(Task task)
                {
                    TeamRoomCreateNetTask teamRoomCreateNetTask2 = task as TeamRoomCreateNetTask;
                    if (teamRoomCreateNetTask2.Result == 0)
                    {
                        this.StartTeamRoomInfoUITask();
                    }
                    else
                    {
                        CommonUIController.Instance.ShowErrorMessage(teamRoomCreateNetTask2.Result, 2f, null, true);
                    }
                };
                teamRoomCreateNetTask.Start(null);
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }
        // Token: 0x0600C8D2 RID: 51410 RVA: 0x00379244 File Offset: 0x00377444
        private void ClimbTowerLevelInfoUIController_OnStartBattle()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ClimbTowerLevelInfoUIController_OnStartBattle_hotfix != null)
            {
                this.m_ClimbTowerLevelInfoUIController_OnStartBattle_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (this.m_towerFloorInfo == null || this.m_towerLevelInfo == null)
            {
                return;
            }
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanAttackClimbTowerFloor(this.m_towerFloorInfo.ID);

            if (num == 0)
            {
                WorldUITask.StartBattleHappening(BattleType.ClimbTower, this.m_towerFloorInfo.ID);
            }
            else if (num == -5403)
            {
                CommonUIController.Instance.ShowMessage(StringTableId.StringTableId_ClimbTower_Flush, 2f, null, true);
                ClimbTowerGetNetTask climbTowerGetNetTask = new ClimbTowerGetNetTask();
                climbTowerGetNetTask.EventOnStop += delegate(Task task)
                {
                    ClimbTowerGetNetTask climbTowerGetNetTask2 = task as ClimbTowerGetNetTask;
                    if (climbTowerGetNetTask2.Result == 0)
                    {
                        this.ClimbTowerLevelInfoUIController_OnClose();
                    }
                    else
                    {
                        CommonUIController.Instance.ShowErrorMessage(climbTowerGetNetTask2.Result, 2f, null, true);
                    }
                };
                climbTowerGetNetTask.Start(null);
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }
예제 #8
0
 // Token: 0x06009BC2 RID: 39874 RVA: 0x002C51F4 File Offset: 0x002C33F4
 private void ArenaSelectUIController_OnClose()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ArenaSelectUIController_OnClose_hotfix != null)
     {
         this.m_ArenaSelectUIController_OnClose_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     WorldUITask.WorldUIController_ShowHide(true, false);
     this.m_arenaSelectUIController.Close(delegate
     {
         base.Pause();
         base.ReturnPrevUITask();
     });
 }
예제 #9
0
        // Token: 0x0600CE9A RID: 52890 RVA: 0x0038D154 File Offset: 0x0038B354
        private void GetPathUIController_OnGotoButtonClick(GetPathData getPathInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetPathUIController_OnGotoButtonClickGetPathData_hotfix != null)
            {
                this.m_GetPathUIController_OnGotoButtonClickGetPathData_hotfix.call(new object[]
                {
                    this,
                    getPathInfo2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GetPathData   getPathInfo = getPathInfo2;
            GetPathUITask $this       = this;
            int?          num         = new int?(0);
            FadeStyle     style       = FadeStyle.Black;
            int           num2        = WorldUITask.CanGotoGetPath(getPathInfo, ref style);

            if (num2 <= 0)
            {
                num = new int?(num2);
                if (num == 0 || num == -402)
                {
                    CommonUIController.Instance.StartFadeOut(delegate
                    {
                        $this.Pause();
                        if ($this.m_onGotoGetPathAction != null)
                        {
                            NeedGoods arg = null;
                            if ($this.m_goodsNeedCount > 0)
                            {
                                arg = new NeedGoods($this.m_goodsType, $this.m_goodsID, $this.m_goodsNeedCount);
                            }
                            $this.m_onGotoGetPathAction(getPathInfo, arg);
                        }
                    }, style, -1f);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(num.Value, 2f, null, true);
                }
                return;
            }
        }
예제 #10
0
 // Token: 0x06009BC1 RID: 39873 RVA: 0x002C5170 File Offset: 0x002C3370
 private void ArenaSelectUIController_OnShowOnlineArena()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ArenaSelectUIController_OnShowOnlineArena_hotfix != null)
     {
         this.m_ArenaSelectUIController_OnShowOnlineArena_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     CommonUIController.Instance.StartShowFadeOutLoadingFadeIn(delegate
     {
         CommonUIController.Instance.HideFadeOutLoadingFadeIn();
         WorldUITask.WorldUIController_ShowHide(true, false);
         base.Pause();
         if (this.EventOnShowArena != null)
         {
             this.EventOnShowArena(ArenaUIType.Online, this.m_isBattleReport, this.m_currIntent);
         }
     }, FadeStyle.Black, -1f, -1f);
 }
예제 #11
0
        // Token: 0x06009BBF RID: 39871 RVA: 0x002C4FC8 File Offset: 0x002C31C8
        protected override void UpdateView()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateView_hotfix != null)
            {
                this.m_UpdateView_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (base.IsOpeningUI())
            {
                this.m_arenaSelectUIController.Open();
                WorldUITask.WorldUIController_ShowHide(false, false);
            }
            UIIntentCustom uiintentCustom = this.m_currIntent as UIIntentCustom;

            if (uiintentCustom != null)
            {
                ArenaUIType structParam = uiintentCustom.GetStructParam <ArenaUIType>("ArenaUIType");
                this.m_isBattleReport = uiintentCustom.GetStructParam <bool>("IsBattleReport");
                uiintentCustom.SetParam("ArenaUIType", ArenaUIType.None);
                uiintentCustom.SetParam("IsBattleReport", false);
                if (structParam != ArenaUIType.None)
                {
                    if (structParam == ArenaUIType.Offline)
                    {
                        this.ArenaSelectUIController_OnShowOfflineArena();
                    }
                    else if (structParam == ArenaUIType.Online)
                    {
                        this.ArenaSelectUIController_OnShowOnlineArena();
                    }
                }
            }
        }
예제 #12
0
        // Token: 0x0601185A RID: 71770 RVA: 0x00489144 File Offset: 0x00487344
        private void HeroTrainningUIController_OnStartHeroTrainningLevel(ConfigDataHeroTrainningLevelInfo levelInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_HeroTrainningUIController_OnStartHeroTrainningLevelConfigDataHeroTrainningLevelInfo_hotfix != null)
            {
                this.m_HeroTrainningUIController_OnStartHeroTrainningLevelConfigDataHeroTrainningLevelInfo_hotfix.call(new object[]
                {
                    this,
                    levelInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanAttackHeroTrainningLevel(levelInfo.ID);

            if (num == 0)
            {
                WorldUITask.StartBattleHappening(BattleType.HeroTrainning, levelInfo.ID);
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }
예제 #13
0
        // Token: 0x0600F7C4 RID: 63428 RVA: 0x00416FD4 File Offset: 0x004151D4
        private void GuildMassiveCombatUIController_OnSingleBattle(GuildMassiveCombatStronghold strongHold)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GuildMassiveCombatUIController_OnSingleBattleGuildMassiveCombatStronghold_hotfix != null)
            {
                this.m_GuildMassiveCombatUIController_OnSingleBattleGuildMassiveCombatStronghold_hotfix.call(new object[]
                {
                    this,
                    strongHold
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanAttackGuildMassiveCombatSinglePVELevel(strongHold.LevelId);

            if (num == 0)
            {
                WorldUITask.StartBattleHappening(BattleType.GuildMassiveCombat, strongHold.LevelId);
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }
예제 #14
0
        // Token: 0x06014742 RID: 83778 RVA: 0x00532638 File Offset: 0x00530838
        private void UnchartedUIController_OnShowUncharted(BattleType battleType, int chapterId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UnchartedUIController_OnShowUnchartedBattleTypeInt32_hotfix != null)
            {
                this.m_UnchartedUIController_OnShowUnchartedBattleTypeInt32_hotfix.call(new object[]
                {
                    this,
                    battleType2,
                    chapterId2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            BattleType      battleType = battleType2;
            int             chapterId  = chapterId2;
            UnchartedUITask $this      = this;

            CommonUIController.Instance.StartShowFadeOutLoadingFadeIn(delegate
            {
                CommonUIController.Instance.HideFadeOutLoadingFadeIn();
                $this.Pause();
                WorldUITask.StartUnchartedSubUITask(battleType, chapterId, $this.m_currIntent);
            }, FadeStyle.Black, -1f, -1f);
        }
        // Token: 0x0600905F RID: 36959 RVA: 0x0029F4CC File Offset: 0x0029D6CC
        private void OpenServiceActivityUIController_OnMissionGoto(GetPathData getPathInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OpenServiceActivityUIController_OnMissionGotoGetPathData_hotfix != null)
            {
                this.m_OpenServiceActivityUIController_OnMissionGotoGetPathData_hotfix.call(new object[]
                {
                    this,
                    getPathInfo2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GetPathData getPathInfo         = getPathInfo2;
            OpenServiceActivityUITask $this = this;
            int?      num   = new int?(0);
            FadeStyle style = FadeStyle.Black;
            int       num2  = WorldUITask.CanGotoGetPath(getPathInfo, ref style);

            if (num2 <= 0)
            {
                num = new int?(num2);
                if (num == 0)
                {
                    CommonUIController.Instance.StartFadeOut(delegate
                    {
                        $this.Pause();
                        WorldUITask.StartGetPathTargetUITask(getPathInfo, $this.m_currIntent, null);
                    }, style, -1f);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(num.Value, 2f, null, true);
                }
                return;
            }
        }
예제 #16
0
        // Token: 0x0600D09E RID: 53406 RVA: 0x00392A4C File Offset: 0x00390C4C
        private void InviteNotifyUIController_OnAccept()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InviteNotifyUIController_OnAccept_hotfix != null)
            {
                this.m_InviteNotifyUIController_OnAccept_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (CommonUIController.Instance.IsAnyDisableInput() || CommonUIController.Instance.IsFading())
            {
                return;
            }
            ProjectLPlayerContext playerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;

            if (this.m_inviteInfo.TeamRoomInviteInfo != null)
            {
                TeamRoomInviteInfo  inviteInfo          = this.m_inviteInfo.TeamRoomInviteInfo;
                TeamRoomJoinNetTask teamRoomJoinNetTask = new TeamRoomJoinNetTask(inviteInfo.RoomId, (GameFunctionType)inviteInfo.GameFunctionTypeId, inviteInfo.LocationId, inviteInfo.SessionId);
                teamRoomJoinNetTask.EventOnStop += delegate(Task task)
                {
                    playerContext.RemoveTeamRoomAInviteInfo(inviteInfo.SessionId, inviteInfo.RoomId);
                    TeamRoomJoinNetTask teamRoomJoinNetTask2 = task as TeamRoomJoinNetTask;
                    if (teamRoomJoinNetTask2.Result == 0)
                    {
                        ChatUITask.PauseUITask();
                        this.StartTeamRoomInfoUITask();
                        this.CloseAndPause();
                    }
                    else
                    {
                        if (this.NextInviteInfo())
                        {
                            this.UpdateView();
                        }
                        else
                        {
                            this.CloseAndPause();
                        }
                        if (teamRoomJoinNetTask2.Result == -3007)
                        {
                            CommonUIController.Instance.ShowMessage(StringTableId.StringTableId_Team_LocationLock, 2f, null, true);
                        }
                        else if (teamRoomJoinNetTask2.Result == -3018 || teamRoomJoinNetTask2.Result == -3006 || teamRoomJoinNetTask2.Result == -3016 || teamRoomJoinNetTask2.Result == -3003)
                        {
                            CommonUIController.Instance.ShowMessage(StringTableId.StringTableId_Team_NoTeamRoom, 2f, null, true);
                        }
                        else
                        {
                            WorldUITask.HandleAttackFailResult(teamRoomJoinNetTask2.Result, this.m_currIntent);
                        }
                    }
                };
                teamRoomJoinNetTask.Start(null);
            }
            else if (this.m_inviteInfo.PVPInviteInfo != null)
            {
                PVPInviteInfo inviteInfo = this.m_inviteInfo.PVPInviteInfo;
                BattlePracticeAcceptNetTask battlePracticeAcceptNetTask = new BattlePracticeAcceptNetTask(inviteInfo.Inviter.UserId);
                battlePracticeAcceptNetTask.EventOnStop += delegate(Task task)
                {
                    playerContext.RemovePVPInviteInfo(inviteInfo.Inviter.UserId);
                    BattlePracticeAcceptNetTask battlePracticeAcceptNetTask2 = task as BattlePracticeAcceptNetTask;
                    if (battlePracticeAcceptNetTask2.Result != 0)
                    {
                        CommonUIController.Instance.ShowErrorMessage(battlePracticeAcceptNetTask2.Result, 2f, null, true);
                    }
                    if (this.NextInviteInfo())
                    {
                        this.UpdateView();
                    }
                    else
                    {
                        this.CloseAndPause();
                    }
                };
                battlePracticeAcceptNetTask.Start(null);
            }
        }