【神将合成】化虚坛和选择祭品界面添加长按头像功能
parent
37003eea1b
commit
3f903cf911
|
|
@ -473,6 +473,9 @@ function this.SingleHeroDataShow(_go,_heroData)
|
||||||
this.SelectHeroShow(curSelectHeroConfig)
|
this.SelectHeroShow(curSelectHeroConfig)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Util.AddLongPressClick(cardBtn, function()
|
||||||
|
UIManager.OpenPanel(UIName.RoleGetInfoPopup, false, heroData.config.Id, heroData.star)
|
||||||
|
end, 0.5)
|
||||||
end
|
end
|
||||||
function this.Compound()
|
function this.Compound()
|
||||||
if not curSelectHero or (curSelectHero and not curSelectHero.heroConfig) then
|
if not curSelectHero or (curSelectHero and not curSelectHero.heroConfig) then
|
||||||
|
|
|
||||||
|
|
@ -246,6 +246,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)
|
||||||
elseif heroData.type == RoleUpStarMatType.item then
|
elseif heroData.type == RoleUpStarMatType.item then
|
||||||
local itemConfig = ConfigManager.TryGetConfigData(ConfigName.ItemConfig,heroData.id)
|
local itemConfig = ConfigManager.TryGetConfigData(ConfigName.ItemConfig,heroData.id)
|
||||||
if not itemConfig then return end
|
if not itemConfig then return end
|
||||||
|
|
@ -293,6 +296,9 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
|
||||||
choosed:SetActive(true)
|
choosed:SetActive(true)
|
||||||
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.RewardItemSingleShowPopup, heroData.id)
|
||||||
|
end, 0.5)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue