diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua index 7435485a4a..612f101aa8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua @@ -18,6 +18,7 @@ local challengeNum = 0 local lootNum = 0 local isPlayAnim = true local bossNum = 0 +local isCanFigth=false --初始化组件(用于子类重写) function GuildCarDelayMainPanel:InitComponent() this.spLoader = SpriteLoader.New() @@ -79,6 +80,9 @@ function GuildCarDelayMainPanel:BindEvent() end) --挑战 Util.AddOnceClick(this.challengeBtn, function() + if isCanFigth==false then + return + end if curProgress ~= 1 then PopupTipPanel.ShowTip(Language[11008]) return @@ -254,6 +258,7 @@ function this.SwitchView(index) -- end) RankingManager.InitData(RANK_TYPE.GUILD_CAR_DELEAY_SINGLE,function() local ranks,myRank = RankingManager.GetRankingInfo() + isCanFigth=true this.SetRankDataShow(ranks,myRank,true) this.myGuildName.text = PracticeManager.SetNameColor(PlayerManager.nickName,PracticeManager.PracticeLevel) end,nil,1) @@ -263,6 +268,7 @@ function this.SwitchView(index) -- this.myGuildName.text = MyGuildManager.MyGuildInfo.name -- end) RankingManager.InitData(RANK_TYPE.GUILD_CAR_DELEAY_GUILD,function() + isCanFigth=true local ranks,myRankInfo = RankingManager.GetRankingInfo() this.SetRankDataShow(ranks,myRankInfo,true) this.myGuildName.text = MyGuildManager.MyGuildInfo.name @@ -450,6 +456,7 @@ function GuildCarDelayMainPanel:OnClose() this.timer:Stop() this.timer = nil end + isCanFigth=false if this.timer2 then this.timer2:Stop() this.timer2 = nil