【编队战力】 修改战力显示 2 未合 local

dev_chengFeng
zhangqiang 2020-11-28 17:20:44 +08:00
parent 6c4afae844
commit f696619328
1 changed files with 14 additions and 1 deletions

View File

@ -691,7 +691,20 @@ function this.SingleHeroDataShow(_go, _heroData)
end)
Util.AddLongPressClick(go, function()
--
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