From 8fd1560ab324e8cd7ae78f53c3918f25bfeb465d Mon Sep 17 00:00:00 2001 From: Jonathan <48493132+Raieverr@users.noreply.github.com> Date: Sun, 12 May 2019 14:17:18 -0600 Subject: [PATCH] Code Cleanup and Configuration (#231) * Code Cleanup -Fixed Spacing * Configuration Change -Added in proper hide/unhide double check feature to code --- .../hideprayers/PVM/HidePrayersPVMConfig.java | 2 +- .../hideprayers/PVM/HidePrayersPVMPlugin.java | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMConfig.java index fc68d4ab19..1bc597966c 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMConfig.java @@ -193,6 +193,6 @@ public interface HidePrayersPVMConfig extends Config keyName = "zamorakexpensive", name = "Zamorak Piety", description = "Shows prayers for Zamorak GWD" - ) + ) default boolean showZamorakExpensive() {return false;} } diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMPlugin.java index 7373cf3c7a..a07358958d 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/hideprayers/PVM/HidePrayersPVMPlugin.java @@ -203,7 +203,22 @@ public class HidePrayersPVMPlugin extends Plugin if (!config.showZulrahCheap() && !config.showZulrahExpensive() && !config.showBarrowsCheap() - && !config.showBarrowsExpensive()) + && !config.showBarrowsExpensive() + && !config.showVorkathCheap() + && !config.showVorkathExpensive() + && !config.showCerberusCheap() + && !config.showCerberusExpensive() + && !config.showCerberusRangeCheap() + && !config.showCerberusRangeExpensive() + && !config.showArmadylCheap() + && !config.showArmadylExpensive() + && !config.showBandosCheap() + && !config.showBandosExpensive() + && !config.showSaradominCheap() + && !config.showSaradominExpensive() + && !config.showZamorakCheap() + && !config.showZamorakExpensive() + ) prayerWidget.setHidden(false); if (config.showZulrahCheap())