【装备出售】装备出售数量可以无限叠加和叠减,修改

dev_chengFeng
ZhangBiao 2020-12-28 16:14:46 +08:00
parent 5a9ba48166
commit 48e05b927d
1 changed files with 10 additions and 2 deletions

View File

@ -79,10 +79,18 @@ function this:BindEvent()
end
end)
Util.AddClick(this.addBtn,function()
this:SetCount(count + 1)
if count < selectEquipTreasureData.num then
this:SetCount(count + 1)
else
PopupTipPanel.ShowTip("已到达最大数量!")
end
end)
Util.AddClick(this.reduceBtn,function()
this:SetCount(count - 1)
if count > 1 then
this:SetCount(count - 1)
else
PopupTipPanel.ShowTip("已到达最小数量!")
end
end)
end