Skip to content

Commit

Permalink
Update OpenDreamShared/Dream/ScreenLocation.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Dec 18, 2024
1 parent 38034c1 commit eb20ff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenDreamShared/Dream/ScreenLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb20ff3

Please sign in to comment.