Add files via upload

Removed hull highlighting for boss as it uses deprecated functionality and is incompatible with the latest RuneLite release.
Removed hull highlighting for projectiles as it uses deprecated functionality and is incompatible with the latest RuneLite release.
Working on updating hull highlighting and re-implementing.

Removed onConfigChanged event handler as event is deprecated in latest RuneLite release.
This commit is contained in:
Kalakoi
2020-02-10 10:32:20 -05:00
committed by GitHub
parent 55f2310403
commit bc2a64695f
3 changed files with 10 additions and 10 deletions

View File

@@ -73,7 +73,7 @@ public class GauntletOverlay extends Overlay {
if (icon == null)
continue;
Polygon polygon = GauntletUtils.boundProjectile(client, projectile);
/*Polygon polygon = GauntletUtils.boundProjectile(client, projectile);
if (polygon == null) {
int x = (int) projectile.getX();
int y = (int) projectile.getY();
@@ -95,7 +95,7 @@ public class GauntletOverlay extends Overlay {
int x = (int) bounds.getCenterX() - (icon.getWidth() / 2);
int y = (int) bounds.getCenterY() - (icon.getHeight() / 2);
graphics.drawImage(icon, x, y, null);
}
}*/
}
for (NPC npc : this.client.getNpcs()) {
@@ -126,7 +126,7 @@ public class GauntletOverlay extends Overlay {
// Overlay the boss with a color on it's convex hull.
if (config.overlayBoss()) {
Polygon polygon = npc.getConvexHull();
/*Polygon polygon = npc.getConvexHull();
if (polygon != null) {
Color color;
@@ -145,7 +145,7 @@ public class GauntletOverlay extends Overlay {
graphics.draw(polygon);
graphics.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), 50));
graphics.fill(polygon);
}
}*/
}
// Overlay of the boss with an icon denoting it's current attack style.