From f696619328972b6daf16356e8ed0d92a1c0f1897 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Sat, 28 Nov 2020 17:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=BC=96=E9=98=9F=E6=88=98=E5=8A=9B?= =?UTF-8?q?=E3=80=91=20=E4=BF=AE=E6=94=B9=E6=88=98=E5=8A=9B=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=202=20=E6=9C=AA=E5=90=88=20=20local?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Formation/FormationPanelV2.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua index 78f15a9c5b..f76f6fe82c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua @@ -691,7 +691,20 @@ function this.SingleHeroDataShow(_go, _heroData) end) Util.AddLongPressClick(go, function() - UIManager.OpenPanel(UIName.RoleInfoPopup, heroData) + -- + local isChoosed = false + for i = 1, #this.choosedList do + if this.choosedList[i] and this.choosedList[i].heroId then + if this.choosedList[i].heroId == heroData.dynamicId then + isChoosed = true + end + end + end + if isChoosed then + UIManager.OpenPanel(UIName.RoleInfoPopup, heroData,nil,this.choosedList,#this.choosedList) + else + UIManager.OpenPanel(UIName.RoleInfoPopup, heroData) + end end, 0.5) end