【星魂福袋】点击使用数量加号,提示英雄达上限 修复

dev_chengFeng
ZhangBiao 2021-07-28 09:58:41 +08:00
parent 042644bdcb
commit c8d35b5458
1 changed files with 9 additions and 2 deletions

View File

@ -110,6 +110,12 @@ function BagResolveAnCompoundPanel:BindEvent()
this.ShowCompoundNumData(value) this.ShowCompoundNumData(value)
end) end)
Util.AddClick(this.addBtn, function() Util.AddClick(this.addBtn, function()
if itemData.itemConfig.ItemType == ItemType.Box then
if compoundNum<compoundMaxNum then
compoundNum=compoundNum+1
this.ShowCompoundNumData(compoundNum)
end
else
if endHeroNum > 0 then if endHeroNum > 0 then
if compoundNum<compoundMaxNum then if compoundNum<compoundMaxNum then
compoundNum=compoundNum+1 compoundNum=compoundNum+1
@ -118,6 +124,7 @@ function BagResolveAnCompoundPanel:BindEvent()
else else
PopupTipPanel.ShowTip(Language[12157]) PopupTipPanel.ShowTip(Language[12157])
end end
end
end) end)
Util.AddClick(this.jianBtn, function() Util.AddClick(this.jianBtn, function()
if compoundNum>=2 then if compoundNum>=2 then