gm修改器购买后信息显示修改

wangzhenxing 2022-11-08 13:58:54 +08:00
parent ceeef789ed
commit ef8e92d939
1 changed files with 7 additions and 3 deletions

View File

@ -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