From ef8e92d939df2f7781d7b837c39b6123bcb4e083 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Tue, 8 Nov 2022 13:58:54 +0800 Subject: [PATCH] =?UTF-8?q?gm=E4=BF=AE=E6=94=B9=E5=99=A8=E8=B4=AD=E4=B9=B0?= =?UTF-8?q?=E5=90=8E=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Operating/GMChangePanel.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua b/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua index 8407d49e47..5538075b1d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua @@ -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