From 91dc78fde9f515cdcc8a7b4f690bd1bde5957326 Mon Sep 17 00:00:00 2001 From: DoKM Date: Tue, 10 Aug 2021 15:39:58 +0200 Subject: Added a toggle to bonemerang overlay --- .../notenoughupdates/options/seperateSections/ItemOverlays.java | 9 +++++++++ .../moulberry/notenoughupdates/overlays/BonemerangOverlay.java | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'src/main/java/io') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java index 82f73891..6233945b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java @@ -203,6 +203,15 @@ public class ItemOverlays { @ConfigEditorAccordion(id = 3) public boolean bonemerangAccordion = false; + @Expose + @ConfigOption( + name = "Enable Bonemerang Overlay", + desc = "Shows info about the bonemerang while holding it." + ) + @ConfigEditorBoolean + @ConfigAccordionId(id = 3) + public boolean enableBonemerangOverlay = true; + @Expose @ConfigOption( name = "Highlight Targeted Entities", diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/BonemerangOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/BonemerangOverlay.java index e8d34ec7..e108e232 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/BonemerangOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/BonemerangOverlay.java @@ -48,6 +48,10 @@ public class BonemerangOverlay extends TextOverlay{ } private void updateOverlay(){ + if(!NotEnoughUpdates.INSTANCE.config.itemOverlays.enableBonemerangOverlay){ + overlayStrings = null; + return; + } overlayStrings = new ArrayList<>(); -- cgit