aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-10 15:39:58 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-10 15:39:58 +0200
commit91dc78fde9f515cdcc8a7b4f690bd1bde5957326 (patch)
tree825029e72c0ecd0413155c2d4847039e8c4860a9 /src
parenteb585a6d526b3d5e5e6dea74a203ef2122637792 (diff)
downloadNotEnoughUpdates-91dc78fde9f515cdcc8a7b4f690bd1bde5957326.tar.gz
NotEnoughUpdates-91dc78fde9f515cdcc8a7b4f690bd1bde5957326.tar.bz2
NotEnoughUpdates-91dc78fde9f515cdcc8a7b4f690bd1bde5957326.zip
Added a toggle to bonemerang overlay
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java9
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/BonemerangOverlay.java4
2 files changed, 13 insertions, 0 deletions
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
@@ -205,6 +205,15 @@ public class ItemOverlays {
@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",
desc = "Highlight entities that will be hit by your bonemerang"
)
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<>();