From 8ec9b44626014703c5aed82a836a9f26cd83d850 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Tue, 16 Mar 2021 17:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=B8=8D=E8=BF=9B=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=9A=90=E8=97=8F=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 0b538b6e1e2ae6c31c97c305898c9c5cde4224ca) --- .../~Lua/Modules/Carbon/CarbonTypePanelV2.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua index 79107e75cc..e856de7b1d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua @@ -238,6 +238,10 @@ function CarbonTypePanelV2:OnShow(...) data = type[PlayerManager.carbonType].default else data = type[PlayerManager.carbonType][k] + local config = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,data.id) + if not config or config.IsOpen == 0 then + data = type[PlayerManager.carbonType].default + end end local redpoint = Util.GetGameObject(v, "redPoint") if data.redPointType == -1 or not data.redPointType then