【神将合成】化虚坛和选择祭品界面添加长按头像功能 2

dev_chengFeng
zhangqiang 2021-04-20 10:38:28 +08:00
parent 3f903cf911
commit bee0fa412e
2 changed files with 6 additions and 0 deletions

View File

@ -165,6 +165,9 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
oldSelectGo = choosed oldSelectGo = choosed
this.numText.text=string.format("%s/%s",LengthOfTable(curSelectHeroList),curNeedRoleNum) this.numText.text=string.format("%s/%s",LengthOfTable(curSelectHeroList),curNeedRoleNum)
end) end)
Util.AddLongPressClick(cardBtn, function()
UIManager.OpenPanel(UIName.RoleInfoPopup,heroData)
end, 0.5)
-- Util.AddOnceClick(formationMask, function() -- Util.AddOnceClick(formationMask, function()
-- if #heroData.formationList ~= 0 then -- if #heroData.formationList ~= 0 then
-- local text = "" -- local text = ""

View File

@ -224,6 +224,9 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
return return
end end
end) end)
Util.AddLongPressClick(cardBtn, function()
UIManager.OpenPanel(UIName.RoleInfoPopup,heroData)
end, 0.5)
end end
function this.HeroSortData(heroData) function this.HeroSortData(heroData)
-- Log("#heroData "..#heroData) -- Log("#heroData "..#heroData)