]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make the version watermark less annoying (#35484)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Mon, 24 Feb 2025 23:21:33 +0000 (00:21 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 23:21:33 +0000 (00:21 +0100)
* make version watermark less annoying

* skreee

Content.Client/Gameplay/GameplayState.cs

index 427dd5c071896ea76498fe9e7f8344c21d79b302..0ce6436f2df2c781598c4b9708af09a92b59f306 100644 (file)
@@ -59,13 +59,13 @@ namespace Content.Client.Gameplay
 
             // Version number watermark.
             _version = new Label();
+            _version.FontColorOverride = Color.FromHex("#FFFFFF20");
             _version.Text = _changelog.GetClientVersion();
-            _version.Visible = VersionVisible();
             UserInterfaceManager.PopupRoot.AddChild(_version);
-            _configurationManager.OnValueChanged(CCVars.HudVersionWatermark, (show) => { _version.Visible = VersionVisible(); });
-            _configurationManager.OnValueChanged(CCVars.ForceClientHudVersionWatermark, (show) => { _version.Visible = VersionVisible(); });
+            _configurationManager.OnValueChanged(CCVars.HudVersionWatermark, (show) => { _version.Visible = VersionVisible(); }, true);
+            _configurationManager.OnValueChanged(CCVars.ForceClientHudVersionWatermark, (show) => { _version.Visible = VersionVisible(); }, true);
             // TODO make this centered or something
-            LayoutContainer.SetPosition(_version, new Vector2(800, 0));
+            LayoutContainer.SetPosition(_version, new Vector2(70, 0));
         }
 
         // This allows servers to force the watermark on clients