aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-17 22:15:34 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-17 22:15:34 +0200
commit6e0c30ab39b7836e0614e167b4c1dcf705bb6e7e (patch)
tree6465b3b552f4fbb0521d654db5f6cad2c5f64613
parent1e725fe960da8d7c4705cebae6d8b4a4eb3658bb (diff)
downloadskyhanni-6e0c30ab39b7836e0614e167b4c1dcf705bb6e7e.tar.gz
skyhanni-6e0c30ab39b7836e0614e167b4c1dcf705bb6e7e.tar.bz2
skyhanni-6e0c30ab39b7836e0614e167b4c1dcf705bb6e7e.zip
Added option to hide the title of money per hour entirely
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Garden.java8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt4
2 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
index 8e6ce0968..e37f3ecae 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
@@ -663,6 +663,14 @@ public class Garden {
public boolean moneyPerHourMergeSeeds = true;
@Expose
+ @ConfigOption(
+ name = "Hide Title",
+ desc = "Hides the first line of 'Money Per Hour' entirely.")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 13)
+ public boolean moneyPerHourHideTitle = false;
+
+ @Expose
public Position moneyPerHourPos = new Position(16, -232, false, true);
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
index d219aefce..a699a767a 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/CropMoneyDisplay.kt
@@ -83,7 +83,9 @@ class CropMoneyDisplay {
if (!hasCropInHand && !config.moneyPerHourAlwaysOn) return newDisplay
- newDisplay.addAsSingletonList(fullTitle(title))
+ if (!config.moneyPerHourHideTitle) {
+ newDisplay.addAsSingletonList(fullTitle(title))
+ }
if (!config.cropMilestoneProgress) {
newDisplay.addAsSingletonList("§cCrop Milestone Progress Display is disabled!")