]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix shuttle FTL with UI scale (#40933)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Fri, 5 Dec 2025 14:53:35 +0000 (15:53 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Dec 2025 14:53:35 +0000 (14:53 +0000)
Fixed click inputs being broken

Fixed rendering of background parallax.

Content.Client/Shuttles/UI/ShuttleMapControl.xaml.cs

index 70ac02bda9b8be6aeb7ea7f3855f83eec3f8abc2..daf2622d8193fdadd38313b7cc7bbff57ea2fc9c 100644 (file)
@@ -124,7 +124,7 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
                 else
                 {
                     // We'll send the "adjusted" position and server will adjust it back when relevant.
-                    var mapCoords = new MapCoordinates(InverseMapPosition(args.RelativePosition), ViewingMap);
+                    var mapCoords = new MapCoordinates(InverseMapPosition(args.RelativePixelPosition), ViewingMap);
                     RequestFTL?.Invoke(mapCoords, _ftlAngle);
                 }
             }
@@ -180,7 +180,7 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
 
         // Remove offset so we can floor.
         var botLeft = new Vector2(0f, 0f);
-        var topRight = botLeft + Size;
+        var topRight = botLeft + PixelSize;
 
         var flooredBL = botLeft - originBL;