From 634758626c7fb409eeb47b283a257927bfdf9144 Mon Sep 17 00:00:00 2001 From: JZomerlei Date: Fri, 28 Feb 2020 05:20:41 -0500 Subject: [PATCH] Add Mythical Cape icon to POH (#10828) --- .../runelite/client/plugins/poh/PohConfig.java | 10 ++++++++++ .../net/runelite/client/plugins/poh/PohIcons.java | 3 ++- .../runelite/client/plugins/poh/PohOverlay.java | 4 ++++ .../runelite/client/plugins/poh/mythicalcape.png | Bin 0 -> 291 bytes 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 runelite-client/src/main/resources/net/runelite/client/plugins/poh/mythicalcape.png diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohConfig.java index 9496352800..317be3b2cf 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohConfig.java @@ -160,4 +160,14 @@ public interface PohConfig extends Config { return true; } + + @ConfigItem( + keyName = "showMythicalCape", + name = "Show Mythical Cape", + description = "Configures whether or not the Mythical Cape is displayed" + ) + default boolean showMythicalCape() + { + return true; + } } diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohIcons.java b/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohIcons.java index b5b972f61e..370f8061a5 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohIcons.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohIcons.java @@ -86,7 +86,8 @@ public enum PohIcons ), DIGSITEPENDANT("digsitependant", DIGSITE_PENDANT, DIGSITE_PENDANT_33417, DIGSITE_PENDANT_33418, DIGSITE_PENDANT_33420 - ); + ), + MYTHICALCAPE("mythicalcape", MYTHICAL_CAPE, MOUNTED_MYTHICAL_CAPE); private static final Map minimapIcons; diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohOverlay.java index 368e763f8f..73d970a5a2 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/poh/PohOverlay.java @@ -144,5 +144,9 @@ public class PohOverlay extends Overlay { iconList.add(PohIcons.XERICSTALISMAN); } + if (config.showMythicalCape()) + { + iconList.add(PohIcons.MYTHICALCAPE); + } } } diff --git a/runelite-client/src/main/resources/net/runelite/client/plugins/poh/mythicalcape.png b/runelite-client/src/main/resources/net/runelite/client/plugins/poh/mythicalcape.png new file mode 100644 index 0000000000000000000000000000000000000000..9e2d64d3285b744309b6c0802440084ec558c53f GIT binary patch literal 291 zcmeAS@N?(olHy`uVBq!ia0vp^{2Tb|4GQ211!mgbRNoF7E2EnL3rIDhN;Z7184uGhJ0XY5}oaG?Kl#MG|N*AGL# zJ@+W`EI6#aNj~O9fbxOac}!dXm93to#AevY`TcBki(E_oyT$|aL?>HlOQ!tu?3sPc z;YK9u+#9n*gvIlowtgHRdWyf6Gkd}h%j55Xeqiu)^>bP0l+XkKDVT3D literal 0 HcmV?d00001