aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorSeRaid <77941535+SeRaid743@users.noreply.github.com>2024-05-02 23:17:03 +1200
committerGitHub <noreply@github.com>2024-05-02 13:17:03 +0200
commit382f226797a2fae468c950a6941b74fd5d525404 (patch)
treeab3f302644a8cfedd669206bd5355175689da382 /src/main/java/at/hannibal2/skyhanni/config
parent0b3495878211a456d3cd8773ee09cab1c65aa2a3 (diff)
downloadskyhanni-382f226797a2fae468c950a6941b74fd5d525404.tar.gz
skyhanni-382f226797a2fae468c950a6941b74fd5d525404.tar.bz2
skyhanni-382f226797a2fae468c950a6941b74fd5d525404.zip
warning when upgrade avaliavble (#1642)
Co-authored-by: Cal <cwolfson58@gmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateUpgradeWarningsConfig.java29
2 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java
index 773fe7fcf..fab7e5ce3 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateFactoryConfig.java
@@ -95,6 +95,11 @@ public class ChocolateFactoryConfig {
public boolean timeTowerWarning = false;
@Expose
+ @ConfigOption(name = "Upgrade Warnings", desc = "")
+ @Accordion
+ public ChocolateUpgradeWarningsConfig chocolateUpgradeWarnings = new ChocolateUpgradeWarningsConfig();
+
+ @Expose
@ConfigLink(owner = ChocolateFactoryConfig.class, field = "statsDisplay")
public Position position = new Position(163, 160, false, true);
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateUpgradeWarningsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateUpgradeWarningsConfig.java
new file mode 100644
index 000000000..befe79b1a
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/chocolatefactory/ChocolateUpgradeWarningsConfig.java
@@ -0,0 +1,29 @@
+package at.hannibal2.skyhanni.config.features.inventory.chocolatefactory;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+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.ConfigOption;
+
+public class ChocolateUpgradeWarningsConfig {
+ @Expose
+ @ConfigOption(name = "Upgrade Warning", desc = "Chat notification when you have an upgrade available to purchase.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean upgradeWarning = true;
+
+ @Expose
+ @ConfigOption(name = "Upgrade Warning Sound", desc = "Also plays a sound when an upgrade is available. " +
+ "§eUpgrade warning must be turned on.")
+ @ConfigEditorBoolean
+ public boolean upgradeWarningSound = false;
+
+ @Expose
+ @ConfigOption(
+ name = "Upgrade Warning Interval",
+ desc = "How often the warning an upgrade is available is repeated in minutes."
+ )
+ @ConfigEditorSlider(minValue = 0, maxValue = 10, minStep = 0.25f)
+ public float timeBetweenWarnings = 1;
+}