aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 16:19:34 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 16:19:34 +0100
commit41022a4c79b49e6a1aa861cce666e30f6099eca7 (patch)
tree2f383dd5922559bb42cf42833608e6cf3ccdd1bc /src/main
parent6ee4de6177ec779ddf12f318c2b0d3e2540a6366 (diff)
downloadskyhanni-41022a4c79b49e6a1aa861cce666e30f6099eca7.tar.gz
skyhanni-41022a4c79b49e6a1aa861cce666e30f6099eca7.tar.bz2
skyhanni-41022a4c79b49e6a1aa861cce666e30f6099eca7.zip
compact title
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Garden.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt11
2 files changed, 10 insertions, 3 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 81589a877..348348c85 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
@@ -408,7 +408,7 @@ public class Garden {
public boolean moneyPerHourAlwaysOn = false;
@Expose
@ConfigOption(
- name = "Compact Display",
+ name = "Compact Mode",
desc = "Hide the item name and the position number.")
@ConfigEditorBoolean
@ConfigAccordionId(id = 13)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
index c682650bd..344e36bd3 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/CropMoneyDisplay.kt
@@ -57,15 +57,22 @@ class CropMoneyDisplay {
private fun drawDisplay(): MutableList<List<Any>> {
val newDisplay = mutableListOf<List<Any>>()
+
+ val title = if (config.moneyPerHourCompact) {
+ Collections.singletonList("§7Money per hour:")
+ } else {
+ Collections.singletonList("§7Money per hour when selling:")
+ }
+
if (!ready) {
- newDisplay.add(Collections.singletonList("§7Money per hour when selling:"))
+ newDisplay.add(title)
newDisplay.add(Collections.singletonList("§eLoading..."))
return newDisplay
}
if (!hasCropInHand && !config.moneyPerHourAlwaysOn) return newDisplay
- newDisplay.add(Collections.singletonList("§7Money per hour when selling:"))
+ newDisplay.add(title)
val moneyPerHourData = calculateMoneyPerHour()
if (moneyPerHourData.isEmpty()) {