aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-22 22:56:04 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-22 22:56:04 +0200
commit2cda2f3c1cf9ddc062fe3e94a4bfcbb8c51172f1 (patch)
tree2c5482663d8a730b43b889892e2e3296befe34ec
parent7cbb039d1bc7a029fe0641a33a0c0be29f7ba141 (diff)
downloadSkyHanni-2cda2f3c1cf9ddc062fe3e94a4bfcbb8c51172f1.tar.gz
SkyHanni-2cda2f3c1cf9ddc062fe3e94a4bfcbb8c51172f1.tar.bz2
SkyHanni-2cda2f3c1cf9ddc062fe3e94a4bfcbb8c51172f1.zip
Added option to hide the "best crop time" title above the list
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Garden.java9
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt13
2 files changed, 17 insertions, 5 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 e764e4adf..241dda99e 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
@@ -287,6 +287,15 @@ public class Garden {
public boolean cropMilestoneBestCompact = false;
@Expose
+ @ConfigOption(
+ name = "Hide Title",
+ desc = "Hides the 'Best Crop Time' line entirely.")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 7)
+ public boolean cropMilestoneBestHideTitle = false;
+
+
+ @Expose
public Position cropMilestoneNextDisplayPos = new Position(-112, -143, false, true);
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt
index b68a89de2..7810ccb8e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt
@@ -36,11 +36,14 @@ class GardenBestCropTime {
timeTillNextCrop.sorted()
}
- val title = if (gardenExp) "§2Garden Experience" else "§bSkyBlock Level"
- if (config.cropMilestoneBestCompact) {
- newList.addAsSingletonList("§eBest Crop Time")
- } else {
- newList.addAsSingletonList("§eBest Crop Time §7($title§7)")
+
+ if (!config.cropMilestoneBestHideTitle) {
+ val title = if (gardenExp) "§2Garden Experience" else "§bSkyBlock Level"
+ if (config.cropMilestoneBestCompact) {
+ newList.addAsSingletonList("§eBest Crop Time")
+ } else {
+ newList.addAsSingletonList("§eBest Crop Time §7($title§7)")
+ }
}
if (!config.cropMilestoneProgress) {