From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 12 Feb 2023 16:51:21 +0000 (+1300) Subject: Rename cvars (#14001) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=43f71aaee68658cc56e1aac19e46c2d7f590bbbd;p=space-station-14.git Rename cvars (#14001) --- diff --git a/Content.Client/Options/UI/Tabs/GraphicsTab.xaml.cs b/Content.Client/Options/UI/Tabs/GraphicsTab.xaml.cs index 39b7f49331..b45b5db477 100644 --- a/Content.Client/Options/UI/Tabs/GraphicsTab.xaml.cs +++ b/Content.Client/Options/UI/Tabs/GraphicsTab.xaml.cs @@ -221,17 +221,17 @@ namespace Content.Client.Options.UI.Tabs private int GetConfigLightingQuality() { - var val = _cfg.GetCVar(CVars.DisplayLightMapDivider); - var soft = _cfg.GetCVar(CVars.DisplaySoftShadows); - if (val >= 8) + var val = _cfg.GetCVar(CVars.LightResolutionScale); + var soft = _cfg.GetCVar(CVars.LightSoftShadows); + if (val <= 0.125) { return 0; } - else if ((val >= 2) && !soft) + else if ((val <= 0.5) && !soft) { return 1; } - else if (val >= 2) + else if (val <= 0.5) { return 2; } @@ -246,24 +246,24 @@ namespace Content.Client.Options.UI.Tabs switch (value) { case 0: - _cfg.SetCVar(CVars.DisplayLightMapDivider, 8); - _cfg.SetCVar(CVars.DisplaySoftShadows, false); - _cfg.SetCVar(CVars.DisplayBlurLight, false); + _cfg.SetCVar(CVars.LightResolutionScale, 0.125f); + _cfg.SetCVar(CVars.LightSoftShadows, false); + _cfg.SetCVar(CVars.LightBlur, false); break; case 1: - _cfg.SetCVar(CVars.DisplayLightMapDivider, 2); - _cfg.SetCVar(CVars.DisplaySoftShadows, false); - _cfg.SetCVar(CVars.DisplayBlurLight, true); + _cfg.SetCVar(CVars.LightResolutionScale, 0.5f); + _cfg.SetCVar(CVars.LightSoftShadows, false); + _cfg.SetCVar(CVars.LightBlur, true); break; case 2: - _cfg.SetCVar(CVars.DisplayLightMapDivider, 2); - _cfg.SetCVar(CVars.DisplaySoftShadows, true); - _cfg.SetCVar(CVars.DisplayBlurLight, true); + _cfg.SetCVar(CVars.LightResolutionScale, 0.5f); + _cfg.SetCVar(CVars.LightSoftShadows, true); + _cfg.SetCVar(CVars.LightBlur, true); break; case 3: - _cfg.SetCVar(CVars.DisplayLightMapDivider, 1); - _cfg.SetCVar(CVars.DisplaySoftShadows, true); - _cfg.SetCVar(CVars.DisplayBlurLight, true); + _cfg.SetCVar(CVars.LightResolutionScale, 1); + _cfg.SetCVar(CVars.LightSoftShadows, true); + _cfg.SetCVar(CVars.LightBlur, true); break; } }