aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorefefury <69400149+efefury@users.noreply.github.com>2023-04-12 21:12:22 +0000
committerGitHub <noreply@github.com>2023-04-12 23:12:22 +0200
commit8f8df60eb5f8bc69eb76b385f4298d29ca8ca649 (patch)
treebe9dd5308cc04c96ceff75f5ebaf12eb9e09cc31 /src/main/java/at/hannibal2/skyhanni/config/features
parent5021f7d8d9403a84c9df0ca6e1ac279c30c3c879 (diff)
downloadskyhanni-8f8df60eb5f8bc69eb76b385f4298d29ca8ca649.tar.gz
skyhanni-8f8df60eb5f8bc69eb76b385f4298d29ca8ca649.tar.bz2
skyhanni-8f8df60eb5f8bc69eb76b385f4298d29ca8ca649.zip
added notification when organic matter/fuel is low in composter (#40)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Garden.java45
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java6
2 files changed, 48 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 4ac5450ba..6fbe69ad2 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java
@@ -746,9 +746,6 @@ public class Garden {
public boolean composterHighLightUpgrade = true;
@Expose
- public Position composterDisplayPos = new Position(-363, 13, false, true);
-
- @Expose
@ConfigOption(
name = "Inventory Numbers",
desc = "Show the amount of Organic Matter, Fuel and Composts Available while inside the composter inventory."
@@ -758,6 +755,47 @@ public class Garden {
public boolean composterInventoryNumbers = true;
@Expose
+ @ConfigOption(name = "Notification When Low Composter", desc = "")
+ @ConfigAccordionId(id = 17)
+ @ConfigEditorAccordion(id = 21)
+ public boolean composterNotifyLow = false;
+
+ @Expose
+ @ConfigOption(name = "Enable", desc = "Show a notification when organic matter or fuel runs low in your composter.")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 21)
+ public boolean composterNotifyLowEnabled = true;
+
+ @Expose
+ @ConfigOption(name = "Show Title", desc = "Send a title to notify.")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 21)
+ public boolean composterNotifyLowTitle = false;
+
+ @Expose
+ @ConfigOption(name = "Min Organic Matter", desc = "Warn when Organic Matter is below this value.")
+ @ConfigEditorSlider(
+ minValue = 1_000,
+ maxValue = 80_000,
+ minStep = 1
+ )
+ @ConfigAccordionId(id = 21)
+ public int composterNotifyLowOrganicMatter = 20_000;
+
+ @Expose
+ @ConfigOption(name = "Min Fuel Cap", desc = "Warn when Fuel is below this value.")
+ @ConfigEditorSlider(
+ minValue = 500,
+ maxValue = 40_000,
+ minStep = 1
+ )
+ @ConfigAccordionId(id = 21)
+ public int composterNotifyLowFuel = 10_000;
+
+ @Expose
+ public Position composterDisplayPos = new Position(-363, 13, false, true);
+
+ @Expose
@ConfigOption(name = "True Farming Fortune", desc = "")
@ConfigEditorAccordion(id = 18)
public boolean farmingFortune = false;
@@ -828,6 +866,7 @@ public class Garden {
@ConfigEditorBoolean
public boolean deskInSkyBlockMenu = true;
+
@Expose
@ConfigOption(name = "Fungi Cutter Warning", desc = "Warn when breaking mushroom with the wrong Fungi Cutter mode.")
@ConfigEditorBoolean
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java b/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java
index 59133d122..4638f816d 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/Hidden.java
@@ -54,6 +54,12 @@ public class Hidden {
public Map<String, Integer> gardenDicerRngDrops = new HashMap<>();
@Expose
+ public long informedAboutLowMatter = 0;
+
+ @Expose
+ public long informedAboutLowFuel = 0;
+
+ @Expose
public Map<Long, List<CropType>> gardenJacobFarmingContestTimes = new HashMap<>();
@Expose