From 30b3adbee6048062e402ccc87adcf6f32caa271f Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Thu, 28 Oct 2021 18:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90ID1018746=E3=80=91=20=E3=80=90?= =?UTF-8?q?=E8=BF=9E=E7=82=B9=E3=80=91=E8=BD=A6=E8=BF=9F=E6=96=97=E6=B3=95?= =?UTF-8?q?=EF=BC=8C=E5=8D=81=E7=BB=9D=E9=98=B5=E4=B8=80=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E7=8E=A9=E6=B3=95=EF=BC=8C=E5=BF=AB=E9=80=9F=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E6=88=98=E6=96=97=EF=BC=8C=E4=BC=9A=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=89=A3=E4=B8=A4=E4=B8=AA=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Formation/FormationPanelV2.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua index 852d97c4d8..59ec2f159b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua @@ -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