]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix(ui): Fix shuttle control radius marking text vertical spacing (#27695)
authorexincore <me@exin.xyz>
Mon, 6 May 2024 03:52:35 +0000 (22:52 -0500)
committerGitHub <noreply@github.com>
Mon, 6 May 2024 03:52:35 +0000 (13:52 +1000)
Content.Client/Shuttles/UI/BaseShuttleControl.xaml.cs

index 284c6681905fd26283131f2d8fbaffb76bcd71b7..8774c1dfb5ce6c84eb56034ffcc2f4527efacdd5 100644 (file)
@@ -100,7 +100,7 @@ public partial class BaseShuttleControl : MapGridControl
             var textDimensions = handle.GetDimensions(Font, text, UIScale);
 
             handle.DrawCircle(origin, scaledRadius, color, false);
-            handle.DrawString(Font, ScalePosition(new Vector2(0f, -radius)) - new Vector2(0f, textDimensions.Y), text, color);
+            handle.DrawString(Font, ScalePosition(new Vector2(0f, -radius)) - new Vector2(0f, textDimensions.Y), text, UIScale, color);
         }
 
         const int gridLinesRadial = 8;