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