Merge pull request #114 from devinfrench/fishing-plugin

Change overlay color for flying fish
This commit is contained in:
Adam
2017-07-10 20:50:37 -04:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ public enum FishingSpot
FISHING_SPOT_7730, FISHING_SPOT_7731, FISHING_SPOT_7732, FISHING_SPOT_7733, FISHING_SPOT_7734 FISHING_SPOT_7730, FISHING_SPOT_7731, FISHING_SPOT_7732, FISHING_SPOT_7733, FISHING_SPOT_7734
); );
public static final int FLYING_FISH = FISHING_SPOT_7734;
private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>(); private static final Map<Integer, FishingSpot> fishingSpots = new HashMap<>();
private final String name; private final String name;

View File

@@ -82,19 +82,19 @@ class FishingSpotOverlay extends Overlay
{ {
continue; continue;
} }
Color color = npc.getId() == FishingSpot.FLYING_FISH ? Color.RED : Color.CYAN;
if (config.showIcons()) if (config.showIcons())
{ {
BufferedImage fishImage = getFishImage(spot); BufferedImage fishImage = getFishImage(spot);
if (fishImage != null) if (fishImage != null)
{ {
OverlayUtil.renderActorOverlayImage(graphics, npc, fishImage, Color.cyan.darker()); OverlayUtil.renderActorOverlayImage(graphics, npc, fishImage, color.darker());
} }
} }
else else
{ {
String text = spot.getName(); String text = spot.getName();
OverlayUtil.renderActorOverlay(graphics, npc, text, Color.cyan.darker()); OverlayUtil.renderActorOverlay(graphics, npc, text, color.darker());
} }
} }