aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-28 21:54:24 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-28 21:54:24 +0200
commit6ebbcf93ca41a403f9d75caad747452fcc628983 (patch)
tree392809f70775717644f53da12eb805cd47142966 /src/main/java/at/hannibal2
parentcaaf4fedb84fc4e95d4d667c1fb6a9e459878182 (diff)
downloadskyhanni-6ebbcf93ca41a403f9d75caad747452fcc628983.tar.gz
skyhanni-6ebbcf93ca41a403f9d75caad747452fcc628983.tar.bz2
skyhanni-6ebbcf93ca41a403f9d75caad747452fcc628983.zip
Now the farming weight display is hidden per default when below 200 weight (can be disabled).
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt4
2 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java
index 5796e609a..9aeb8d1a8 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java
@@ -782,6 +782,12 @@ public class GardenConfig {
public String eliteFarmingWeightETAGoalRank = "10000";
@Expose
+ @ConfigOption(name = "Show below 200", desc = "Show the farming weight data even if you are below 200 weight.")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 11)
+ public boolean eliteFarmingWeightIgnoreLow = false;
+
+ @Expose
@ConfigOption(name = "Dicer Counter", desc = "")
@ConfigEditorAccordion(id = 12)
public boolean dicerCounter = false;
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
index 5e6818ccf..053fae0ca 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
@@ -21,7 +21,9 @@ class FarmingWeightDisplay {
@SubscribeEvent
fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) {
if (isEnabled()) {
- config.eliteFarmingWeightPos.renderStrings(display, posLabel = "Farming Weight Display")
+ if (config.eliteFarmingWeightIgnoreLow || weight >= 200) {
+ config.eliteFarmingWeightPos.renderStrings(display, posLabel = "Farming Weight Display")
+ }
}
}