功能不进版本隐藏按钮

dev_chengFeng
jiaoyangna 2021-03-16 17:36:30 +08:00
parent adabb23e0c
commit 0b538b6e1e
1 changed files with 4 additions and 0 deletions

View File

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