【四象心法】点击消耗道具显示详情
parent
4910773749
commit
d8e88d4fba
|
@ -335,6 +335,13 @@ function this.UpdateBtnStateAndCostShow()
|
|||
if cueHasNum<costStr[2] then
|
||||
num.text = string.format("<color=red>%s/%s</color>",PrintWanNum2(cueHasNum),costStr[2])
|
||||
end
|
||||
local itemBtn=Util.GetGameObject(costObj,"Image")
|
||||
local itemId=costStr[1]
|
||||
Util.AddOnceClick(itemBtn, function()
|
||||
LogRed("itemid:"..itemId)
|
||||
this.itemView:OnBtnCkickEvent(itemId)
|
||||
end)
|
||||
|
||||
else
|
||||
costObj:SetActive(false);
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue