车迟斗法修改

dev_chengFeng
wangzhenxing 2023-01-12 18:27:23 +08:00
parent 3782873283
commit fd4f7908c3
1 changed files with 7 additions and 0 deletions

View File

@ -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