gm修改器购买后信息显示修改
parent
ceeef789ed
commit
ef8e92d939
|
@ -195,9 +195,13 @@ function GMChangePanel:SingleTask(go,data)
|
|||
return
|
||||
end
|
||||
local leftBuyTime=OperatingManager.GetLeftBuyTime(recharge.Type,recharge.Id)
|
||||
num.text="("..leftBuyTime.."/"..recharge.Limit..")"
|
||||
Util.SetGray(btn,leftBuyTime<=0)
|
||||
btn:GetComponent("Button").interactable = leftBuyTime>0
|
||||
if leftBuyTime==-1 then
|
||||
num.text=""
|
||||
else
|
||||
num.text="("..leftBuyTime.."/"..recharge.Limit..")"
|
||||
end
|
||||
Util.SetGray(btn,leftBuyTime==0)
|
||||
btn:GetComponent("Button").interactable = leftBuyTime==-1 or leftBuyTime>0
|
||||
this:ShowTopInfo()
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue