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:
@@ -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.
|
||||
|
@@ -24,7 +24,7 @@ import net.runelite.api.Skill;
|
||||
import net.runelite.api.SoundEffectID;
|
||||
import net.runelite.api.Tile;
|
||||
import net.runelite.api.events.AnimationChanged;
|
||||
import net.runelite.api.events.ConfigChanged;
|
||||
//import net.runelite.api.events.ConfigChanged;
|
||||
import net.runelite.api.events.GameObjectChanged;
|
||||
import net.runelite.api.events.GameObjectDespawned;
|
||||
import net.runelite.api.events.GameObjectSpawned;
|
||||
@@ -176,7 +176,7 @@ public class GauntletPlugin extends Plugin {
|
||||
imageAttackPrayer = ImageUtil.resizeImage(iconManager.getSkillImage(Skill.PRAYER, true), imageSize, imageSize);
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
/*@Subscribe
|
||||
public void onConfigChanged(ConfigChanged event) {
|
||||
if (event.getGroup() == null || event.getKey() == null || !event.getGroup().equals("Gauntlet"))
|
||||
return;
|
||||
@@ -192,7 +192,7 @@ public class GauntletPlugin extends Plugin {
|
||||
} else if (event.getKey().equals("iconSize")) {
|
||||
loadImages(config.iconSize());
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
@Subscribe
|
||||
public void onVarbitChanged(VarbitChanged event) {
|
||||
|
@@ -8,7 +8,7 @@ import net.runelite.api.Point;
|
||||
import net.runelite.api.Projectile;
|
||||
import net.runelite.api.coords.LocalPoint;
|
||||
import net.runelite.api.model.Jarvis;
|
||||
import net.runelite.api.model.Vertex;
|
||||
//import net.runelite.api.model.Vertex;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.ArrayList;
|
||||
@@ -170,7 +170,7 @@ public class GauntletUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static Polygon boundProjectile(Client client, Projectile p) {
|
||||
/*public static Polygon boundProjectile(Client client, Projectile p) {
|
||||
if (p == null || p.getModel() == null)
|
||||
return null;
|
||||
|
||||
@@ -212,5 +212,5 @@ public class GauntletUtils {
|
||||
}
|
||||
|
||||
return polygon;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
Reference in New Issue
Block a user