Skip to content

Commit

Permalink
Merge pull request runelite#3368 from sainttx/devtools-location-extras
Browse files Browse the repository at this point in the history
devtools: Add base, local, and region coordinates to LocationOverlay
  • Loading branch information
Adam- authored May 27, 2018
2 parents 772c933 + b08392e commit 8d04ef3
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ public Dimension render(Graphics2D graphics)
.build());
}

panelComponent.getChildren().add(LineComponent.builder()
.left("Base")
.right(client.getBaseX() + ", " + client.getBaseY())
.build());

panelComponent.getChildren().add(LineComponent.builder()
.left("Local")
.right(localPoint.getX() + ", " + localPoint.getY())
.build());

panelComponent.getChildren().add(LineComponent.builder()
.left("Region")
.right(localPoint.getRegionX() + ", " + localPoint.getRegionY())
.build());

panelComponent.getChildren().add(LineComponent.builder()
.left("Tile")
.right(localWorld.getX() + ", " + localWorld.getY() + ", " + client.getPlane())
Expand Down

0 comments on commit 8d04ef3

Please sign in to comment.