【ID1018746】

【连点】车迟斗法,十绝阵一类的玩法,快速点击进入战斗,会直接扣两个次数
dev_chengFeng
jiaoyangna 2021-10-28 18:32:21 +08:00
parent 9926717bb9
commit 30b3adbee6
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,7 @@ local tempPowerNum=0 --临时战力
local panelType
local parameter --透传参数
local tabsImg = {"z_icon_01_zh", "r_hero_huo 1_zh", "r_hero_feng 1_zh", "r_hero_shui 1_zh", "r_hero_dadi 1_zh"}
local isPress = false
-- 各个类型编队系统逻辑列表
this.PanelOptionView = {
[FORMATION_TYPE.CARBON] = "Modules/Formation/View/CarbonFormation",
@ -199,8 +200,13 @@ function this:BindEvent()
end
end)
Util.AddOnceClick(this.btn_2, function()
if isPress then
return
end
isPress = true
if this.opView and this.opView.On_Btn2_Click then
this.opView.On_Btn2_Click(this.curFormationIndex)
isPress = false
end
end)
end
@ -262,12 +268,14 @@ function this:OnOpen(_panelType,...)
end
function this:OnShow()
isPress = false
this.ElementalResonanceView:OnOpen({sortOrder=self.sortingOrder})
this.SetDrawLevel()
this.CheckQiJieCondition()
end
function this:OnClose()
isPress = false
tempPowerNum = 0
this.formationPower = 0
oldPowerNum = 0