From 8f8df60eb5f8bc69eb76b385f4298d29ca8ca649 Mon Sep 17 00:00:00 2001 From: efefury <69400149+efefury@users.noreply.github.com> Date: Wed, 12 Apr 2023 21:12:22 +0000 Subject: added notification when organic matter/fuel is low in composter (#40) --- .../hannibal2/skyhanni/config/features/Garden.java | 45 ++++++++++++++++++++-- .../hannibal2/skyhanni/config/features/Hidden.java | 6 +++ 2 files changed, 48 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config') 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 @@ -745,9 +745,6 @@ public class Garden { @ConfigAccordionId(id = 17) public boolean composterHighLightUpgrade = true; - @Expose - public Position composterDisplayPos = new Position(-363, 13, false, true); - @Expose @ConfigOption( name = "Inventory Numbers", @@ -757,6 +754,47 @@ public class Garden { @ConfigAccordionId(id = 17) 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) @@ -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 @@ -53,6 +53,12 @@ public class Hidden { @Expose public Map gardenDicerRngDrops = new HashMap<>(); + @Expose + public long informedAboutLowMatter = 0; + + @Expose + public long informedAboutLowFuel = 0; + @Expose public Map> gardenJacobFarmingContestTimes = new HashMap<>(); -- cgit