diff --git a/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua b/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua index b194e035dc..dc13b8e13b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua +++ b/Assets/ManagedResources/~Lua/Modules/Setting/SettingInfo.lua @@ -82,17 +82,19 @@ function SettingInfo:SetTipShow() end function SettingInfo:SetReslutionTipShow() - local value = PlayerPrefs.GetInt("ResLution") - this.selectResolution.value = value - if value == 0 then - UnityEngine.Application.targetFrameRate = 30; - this.selectResolutionText.text = "普通帧率" - this.selectResolutionTip.gameObject:SetActive(false) - else - UnityEngine.Application.targetFrameRate = 60; - this.selectResolutionText.text = "高帧率" - this.selectResolutionTip.gameObject:SetActive(true) - end + if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.IS_SELECT_RESLUTION) then + local value = PlayerPrefs.GetInt("ResLution") + this.selectResolution.value = value + if value == 0 then + UnityEngine.Application.targetFrameRate = 30; + this.selectResolutionText.text = "普通帧率" + this.selectResolutionTip.gameObject:SetActive(false) + else + UnityEngine.Application.targetFrameRate = 60; + this.selectResolutionText.text = "高帧率" + this.selectResolutionTip.gameObject:SetActive(true) + end + end end --绑定事件(用于子类重写)