【编队战力】 修改战力显示 2 未合 local
parent
6c4afae844
commit
f696619328
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue