From 270788e2ee876450f62a63197cb8914a803f5cc4 Mon Sep 17 00:00:00 2001 From: saga <45262877+saga-00@users.noreply.github.com> Date: Sat, 7 Sep 2024 18:15:06 -0300 Subject: Feature: Notifications for Non God Pot Effects almost ending (#2004) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/config/features/misc/MiscConfig.java | 3 ++- .../config/features/misc/PotionEffectsConfig.java | 25 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java index d27d3a0e3..a06055f97 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java @@ -48,8 +48,9 @@ public class MiscConfig { public HideArmorConfig hideArmor2 = new HideArmorConfig(); @Expose - @ConfigOption(name = "Potion Effects", desc = "") + @ConfigOption(name = "Non-God Pot Effects", desc = "") @Accordion + // TODO rename nonGodPotEffect public PotionEffectsConfig potionEffect = new PotionEffectsConfig(); @Expose diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/PotionEffectsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/PotionEffectsConfig.java index 6ead17186..34af9fbf2 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/PotionEffectsConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/PotionEffectsConfig.java @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.config.FeatureToggle; import at.hannibal2.skyhanni.config.core.config.Position; import com.google.gson.annotations.Expose; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; import io.github.notenoughupdates.moulconfig.annotations.ConfigLink; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; @@ -20,7 +21,31 @@ public class PotionEffectsConfig { @FeatureToggle public boolean nonGodPotEffectShowMixins = false; + @Expose + @ConfigOption(name = "Expire Warning", desc = "Sends a title when one of the Non God Pot Effects is expiring.") + @ConfigEditorBoolean + @FeatureToggle + public boolean expireWarning = false; + + @Expose + @ConfigOption(name = "Expire Sound", desc = "Makes a sound when one of the Non God Pot Effects is expiring.") + @ConfigEditorBoolean + @FeatureToggle + public boolean expireSound = false; + + @Expose + @ConfigOption( + name = "Expire Warning Time", + desc = "Change the time in seconds before the potion expries to warn you.") + @ConfigEditorSlider( + minValue = 30, + maxValue = 300, + minStep = 5 + ) + public int expireWarnTime = 30; + @Expose @ConfigLink(owner = PotionEffectsConfig.class, field = "nonGodPotEffectDisplay") + // TODO rename position public Position nonGodPotEffectPos = new Position(10, 10, false, true); } -- cgit