From cb0bb31047f702f4fa0b9acecbdca83743beebe3 Mon Sep 17 00:00:00 2001 From: Kyleeld <48519776+Kyleeld@users.noreply.github.com> Date: Sat, 20 Apr 2019 23:31:44 +0100 Subject: [PATCH] Delete SafeSpotOverlay.java --- .../plugins/safespot/SafeSpotOverlay.java | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotOverlay.java diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotOverlay.java deleted file mode 100644 index 7259957f15..0000000000 --- a/runelite-client/src/main/java/net/runelite/client/plugins/safespot/SafeSpotOverlay.java +++ /dev/null @@ -1,40 +0,0 @@ -package net.runelite.client.plugins.safespot; - -import javax.inject.*; -import net.runelite.client.ui.overlay.*; -import java.awt.*; -import net.runelite.api.*; - -public class SafeSpotOverlay extends Overlay -{ - private final Client client; - private final SafeSpotPlugin safeSpotPlugin; - private final SafeSpotConfig config; - - @Inject - public SafeSpotOverlay( Client client, SafeSpotPlugin safeSpotPlugin, SafeSpotConfig config) { - this.client = client; - this.safeSpotPlugin = safeSpotPlugin; - this.config = config; - this.setPosition(OverlayPosition.DYNAMIC); - this.setPriority(OverlayPriority.LOW); - this.setLayer(OverlayLayer.ABOVE_SCENE); - } - - @Override - public Dimension render(Graphics2D graphics) { - if (safeSpotPlugin.isSafeSpotsRenderable() && safeSpotPlugin.getSafeSpotList() != null && safeSpotPlugin.getSafeSpotList().size() > 0) { - safeSpotPlugin.getSafeSpotList().forEach(tile -> { - Polygon poly; - if (tile != null && tile.getLocalLocation() != null) { - poly = Perspective.getCanvasTilePoly(client, tile.getLocalLocation()); - if (poly != null) { - OverlayUtil.renderPolygon(graphics, poly, config.tileColor()); - } - } - return; - }); - } - return null; - } -}