aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 00:52:58 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-23 00:52:58 +0200
commitdef9575e1798ac056b277cf69875b2bad633ef75 (patch)
treea7d6c8458076e6a5e4a0fee0cfd7d92c98ee2060
parent90d1a9397a23ddb2eb4d79962f022d2fe9d55730 (diff)
downloadSkyHanni-def9575e1798ac056b277cf69875b2bad633ef75.tar.gz
SkyHanni-def9575e1798ac056b277cf69875b2bad633ef75.tar.bz2
SkyHanni-def9575e1798ac056b277cf69875b2bad633ef75.zip
Best crop time compact display now hides the # number too
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Garden.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenBestCropTime.kt4
2 files changed, 4 insertions, 2 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 519ff3df5..affdf9375 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
@@ -281,7 +281,7 @@ public class Garden {
@Expose
@ConfigOption(
name = "Compact Display",
- desc = "Make the best crop time more compact by removing the crop name and exp and making the time format shorter")
+ desc = "A more compact best crop time: Removing the crop name and exp, hide the # number and using a more compact time format.")
@ConfigEditorBoolean
@ConfigAccordionId(id = 7)
public boolean cropMilestoneBestCompact = false;
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 7810ccb8e..23ea2e33b 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
@@ -65,7 +65,9 @@ class GardenBestCropTime {
if (number > config.cropMilestoneShowOnlyBest && !isCurrent) continue
val list = mutableListOf<Any>()
- list.add("§7$number# ")
+ if (!config.cropMilestoneBestCompact) {
+ list.add("§7$number# ")
+ }
list.addCropIcon(crop)
val color = if (isCurrent) "§e" else "§7"