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