车迟斗法修改
parent
3782873283
commit
fd4f7908c3
|
@ -18,6 +18,7 @@ local challengeNum = 0
|
||||||
local lootNum = 0
|
local lootNum = 0
|
||||||
local isPlayAnim = true
|
local isPlayAnim = true
|
||||||
local bossNum = 0
|
local bossNum = 0
|
||||||
|
local isCanFigth=false
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function GuildCarDelayMainPanel:InitComponent()
|
function GuildCarDelayMainPanel:InitComponent()
|
||||||
this.spLoader = SpriteLoader.New()
|
this.spLoader = SpriteLoader.New()
|
||||||
|
@ -79,6 +80,9 @@ function GuildCarDelayMainPanel:BindEvent()
|
||||||
end)
|
end)
|
||||||
--挑战
|
--挑战
|
||||||
Util.AddOnceClick(this.challengeBtn, function()
|
Util.AddOnceClick(this.challengeBtn, function()
|
||||||
|
if isCanFigth==false then
|
||||||
|
return
|
||||||
|
end
|
||||||
if curProgress ~= 1 then
|
if curProgress ~= 1 then
|
||||||
PopupTipPanel.ShowTip(Language[11008])
|
PopupTipPanel.ShowTip(Language[11008])
|
||||||
return
|
return
|
||||||
|
@ -254,6 +258,7 @@ function this.SwitchView(index)
|
||||||
-- end)
|
-- end)
|
||||||
RankingManager.InitData(RANK_TYPE.GUILD_CAR_DELEAY_SINGLE,function()
|
RankingManager.InitData(RANK_TYPE.GUILD_CAR_DELEAY_SINGLE,function()
|
||||||
local ranks,myRank = RankingManager.GetRankingInfo()
|
local ranks,myRank = RankingManager.GetRankingInfo()
|
||||||
|
isCanFigth=true
|
||||||
this.SetRankDataShow(ranks,myRank,true)
|
this.SetRankDataShow(ranks,myRank,true)
|
||||||
this.myGuildName.text = PracticeManager.SetNameColor(PlayerManager.nickName,PracticeManager.PracticeLevel)
|
this.myGuildName.text = PracticeManager.SetNameColor(PlayerManager.nickName,PracticeManager.PracticeLevel)
|
||||||
end,nil,1)
|
end,nil,1)
|
||||||
|
@ -263,6 +268,7 @@ function this.SwitchView(index)
|
||||||
-- this.myGuildName.text = MyGuildManager.MyGuildInfo.name
|
-- this.myGuildName.text = MyGuildManager.MyGuildInfo.name
|
||||||
-- end)
|
-- end)
|
||||||
RankingManager.InitData(RANK_TYPE.GUILD_CAR_DELEAY_GUILD,function()
|
RankingManager.InitData(RANK_TYPE.GUILD_CAR_DELEAY_GUILD,function()
|
||||||
|
isCanFigth=true
|
||||||
local ranks,myRankInfo = RankingManager.GetRankingInfo()
|
local ranks,myRankInfo = RankingManager.GetRankingInfo()
|
||||||
this.SetRankDataShow(ranks,myRankInfo,true)
|
this.SetRankDataShow(ranks,myRankInfo,true)
|
||||||
this.myGuildName.text = MyGuildManager.MyGuildInfo.name
|
this.myGuildName.text = MyGuildManager.MyGuildInfo.name
|
||||||
|
@ -450,6 +456,7 @@ function GuildCarDelayMainPanel:OnClose()
|
||||||
this.timer:Stop()
|
this.timer:Stop()
|
||||||
this.timer = nil
|
this.timer = nil
|
||||||
end
|
end
|
||||||
|
isCanFigth=false
|
||||||
if this.timer2 then
|
if this.timer2 then
|
||||||
this.timer2:Stop()
|
this.timer2:Stop()
|
||||||
this.timer2 = nil
|
this.timer2 = nil
|
||||||
|
|
Loading…
Reference in New Issue