From 02e5a6481338f3571dea6693bf1b87868c1522f8 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 4 May 2019 17:01:17 +0200 Subject: [PATCH] Also show projectile id for aoe projectiles in dev tools --- .../client/plugins/devtools/DevToolsOverlay.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/devtools/DevToolsOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/devtools/DevToolsOverlay.java index c764eb2258..f06ec6bd6c 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/devtools/DevToolsOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/devtools/DevToolsOverlay.java @@ -423,6 +423,16 @@ class DevToolsOverlay extends Overlay { OverlayUtil.renderActorOverlay(graphics, projectile.getInteracting(), infoString, Color.RED); } + else + { + LocalPoint projectilePoint = new LocalPoint((int) projectile.getX(), (int) projectile.getY()); + Point textLocation = Perspective.getCanvasTextLocation(client, graphics, projectilePoint, infoString, 0); + + if (textLocation != null) + { + OverlayUtil.renderTextLocation(graphics, textLocation, infoString, Color.RED); + } + } } }