Merge pull request #180 from Lucwousin/oh_no_whats_that_id_help

Also show projectile id for aoe projectiles in dev tools
This commit is contained in:
Ganom
2019-05-04 11:10:12 -04:00
committed by GitHub

View File

@@ -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);
}
}
}
}