From eb20ff35c0189b646060d547b974a9f04d611d9b Mon Sep 17 00:00:00 2001 From: wixoa Date: Wed, 18 Dec 2024 15:02:10 -0500 Subject: [PATCH] Update OpenDreamShared/Dream/ScreenLocation.cs --- OpenDreamShared/Dream/ScreenLocation.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenDreamShared/Dream/ScreenLocation.cs b/OpenDreamShared/Dream/ScreenLocation.cs index 7e4c39b85c..2b0b13d553 100644 --- a/OpenDreamShared/Dream/ScreenLocation.cs +++ b/OpenDreamShared/Dream/ScreenLocation.cs @@ -72,6 +72,8 @@ public ScreenLocation(string screenLocation) { } public Vector2 GetViewPosition(Vector2 viewOffset, ViewRange view, float tileSize, Vector2i iconSize) { + // TODO: LEFT/RIGHT/TOP/BOTTOM need to stick to the edge of the visible map if the map's container is smaller than the map itself + float x = (X + PixelOffsetX / tileSize); x += HorizontalAnchor switch { HorizontalAnchor.West or HorizontalAnchor.Left => 0,