use of net.runelite.client.ui.overlay.components.PanelComponent in project runelite by runelite.
the class LocationOverlay method render.
@Override
public Dimension render(Graphics2D graphics) {
if (!plugin.isToggleLocation()) {
return null;
}
panelComponent = new PanelComponent();
WorldPoint localWorld = client.getLocalPlayer().getWorldLocation();
panelComponent.getLines().add(new PanelComponent.Line("Tile", localWorld.getX() + ", " + localWorld.getY() + ", " + client.getPlane()));
for (int i = 0; i < client.getMapRegions().length; i++) {
int region = client.getMapRegions()[i];
panelComponent.getLines().add(new PanelComponent.Line((i == 0) ? "Map region" : " ", String.valueOf(region)));
}
return panelComponent.render(graphics);
}
Aggregations