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

dev_chengFeng
zhangqiang 2021-04-20 10:17:57 +08:00
parent 37003eea1b
commit 3f903cf911
2 changed files with 9 additions and 0 deletions

View File

@ -473,6 +473,9 @@ function this.SingleHeroDataShow(_go,_heroData)
this.SelectHeroShow(curSelectHeroConfig)
end
end)
Util.AddLongPressClick(cardBtn, function()
UIManager.OpenPanel(UIName.RoleGetInfoPopup, false, heroData.config.Id, heroData.star)
end, 0.5)
end
function this.Compound()
if not curSelectHero or (curSelectHero and not curSelectHero.heroConfig) then

View File

@ -246,6 +246,9 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
return
end
end)
Util.AddLongPressClick(cardBtn, function()
UIManager.OpenPanel(UIName.RoleInfoPopup,heroData)
end, 0.5)
elseif heroData.type == RoleUpStarMatType.item then
local itemConfig = ConfigManager.TryGetConfigData(ConfigName.ItemConfig,heroData.id)
if not itemConfig then return end
@ -293,6 +296,9 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
choosed:SetActive(true)
this.numText.text=string.format("%s/%s",LengthOfTable(curSelectHeroList),curNeedRoleNum)
end)
Util.AddLongPressClick(cardBtn, function()
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, heroData.id)
end, 0.5)
end
end