barrows overlay: Reorder enum to match in game overlay/use full name

reorder the enum to match the in-game overlay order and also add full name
This commit is contained in:
Seth
2018-04-14 12:03:47 -05:00
parent cabaf2d33c
commit b01639dda0
2 changed files with 10 additions and 9 deletions

View File

@@ -32,12 +32,12 @@ import net.runelite.api.coords.WorldPoint;
@RequiredArgsConstructor @RequiredArgsConstructor
public enum BarrowsBrothers public enum BarrowsBrothers
{ {
VERAC("V", new WorldPoint(3557, 3298, 0), Varbits.BARROWS_KILLED_VERAC), AHRIM("Ahrim", new WorldPoint(3566, 3289, 0), Varbits.BARROWS_KILLED_AHRIM),
DHAROK("D", new WorldPoint(3575, 3298, 0), Varbits.BARROWS_KILLED_DHAROK), DHAROK("Dharok", new WorldPoint(3575, 3298, 0), Varbits.BARROWS_KILLED_DHAROK),
AHRIM("A", new WorldPoint(3566, 3289, 0) , Varbits.BARROWS_KILLED_AHRIM), GUTHAN("Guthan", new WorldPoint(3577, 3283, 0), Varbits.BARROWS_KILLED_GUTHAN),
TORAG("T", new WorldPoint(3553, 3283, 0), Varbits.BARROWS_KILLED_TORAG), KARIL("Karil", new WorldPoint(3566, 3275, 0), Varbits.BARROWS_KILLED_KARIL),
KARIL("K", new WorldPoint(3566, 3275, 0), Varbits.BARROWS_KILLED_KARIL), TORAG("Torag", new WorldPoint(3553, 3283, 0), Varbits.BARROWS_KILLED_TORAG),
GUTHAN("G", new WorldPoint(3577, 3283, 0), Varbits.BARROWS_KILLED_GUTHAN); VERAC("Verac", new WorldPoint(3557, 3298, 0), Varbits.BARROWS_KILLED_VERAC);
@Getter @Getter
private final String name; private final String name;

View File

@@ -169,13 +169,14 @@ class BarrowsOverlay extends Overlay
continue; continue;
} }
String brotherLetter = Character.toString(brother.getName().charAt(0));
net.runelite.api.Point minimapText = Perspective.getCanvasTextMiniMapLocation(client, graphics, net.runelite.api.Point minimapText = Perspective.getCanvasTextMiniMapLocation(client, graphics,
localLocation, brother.getName()); localLocation, brotherLetter);
if (minimapText != null) if (minimapText != null)
{ {
graphics.setColor(Color.black); graphics.setColor(Color.black);
graphics.drawString(brother.getName(), minimapText.getX() + 1, minimapText.getY() + 1); graphics.drawString(brotherLetter, minimapText.getX() + 1, minimapText.getY() + 1);
if (client.getSetting(brother.getKilledVarbit()) > 0) if (client.getSetting(brother.getKilledVarbit()) > 0)
{ {
@@ -186,7 +187,7 @@ class BarrowsOverlay extends Overlay
graphics.setColor(config.brotherLocColor()); graphics.setColor(config.brotherLocColor());
} }
graphics.drawString(brother.getName(), minimapText.getX(), minimapText.getY()); graphics.drawString(brotherLetter, minimapText.getX(), minimapText.getY());
} }
} }
} }