From cd3952af1e4f679b1f96f1cab809bf91c300d8e2 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 1 Dec 2022 18:03:52 +0800 Subject: [PATCH] =?UTF-8?q?gm=E4=BF=AE=E6=94=B9=E5=99=A8=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua b/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua index 4679f0b7c3..bf316eeba0 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/GMChangePanel.lua @@ -169,7 +169,7 @@ function GMChangePanel:SingleTask(go,data) local btnTxt=Util.GetGameObject(go, "btn/Text"):GetComponent("Text") local recharge=rechargeCommodityConfig[data.PackID] local scale=1 - if recharge then + if data.PackID~=0 and recharge then name.text=recharge.Name --LogError("type=="..recharge.Type.." id=="..recharge.Id) local leftBuyTime=OperatingManager.GetLeftBuyTime(recharge.Type,recharge.Id) @@ -183,6 +183,8 @@ function GMChangePanel:SingleTask(go,data) btnTxt.text="兑换" else name.text=data.Name + btn:GetComponent("Button").interactable = true + Util.SetGray(btn,false) if data.Id==45 then scale = BattleManager.GetTimeScale() scale = math.floor(scale*10 + 0.5)/10