aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-04-18 20:13:35 +0200
committerGitHub <noreply@github.com>2024-04-18 20:13:35 +0200
commit602940752c3a74473c8092b3d646926686b38522 (patch)
tree1489e71f5efde963741358bd0285c5b90d3afb8d /src/main/java/at/hannibal2/skyhanni/config/features
parent04ce843b12afe771fba6e03b3cd39a806a81cbd5 (diff)
downloadskyhanni-602940752c3a74473c8092b3d646926686b38522.tar.gz
skyhanni-602940752c3a74473c8092b3d646926686b38522.tar.bz2
skyhanni-602940752c3a74473c8092b3d646926686b38522.zip
Feature: Bits Gained Chat Message (#1487)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/BitsConfig.java31
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/NoBitsWarningConfig.java19
3 files changed, 33 insertions, 21 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/BitsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/BitsConfig.java
new file mode 100644
index 000000000..24b183ff5
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/BitsConfig.java
@@ -0,0 +1,31 @@
+package at.hannibal2.skyhanni.config.features.misc;
+
+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 BitsConfig {
+ @Expose
+ @ConfigOption(name = "Enable No Bits Warning", desc = "Alerts you when you have no bits available.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enableWarning = true;
+
+ @Expose
+ @ConfigOption(name = "Notification Sound", desc = "Plays a notification sound when you get a warning.")
+ @ConfigEditorBoolean
+ public boolean notificationSound = true;
+
+ @Expose
+ @ConfigOption(name = "Bits Gain Chat Message", desc = "Shows a chat message when you gain bits.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean bitsGainChatMessage = true;
+
+ @Expose
+ @ConfigOption(name = "Threshold", desc = "The amount of bits you need to have to not get a warning.")
+ @ConfigEditorSlider(minValue = 0, maxValue = 1000, minStep = 1)
+ public int threshold = 400;
+}
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 8b21e3e85..d1fa39a86 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
@@ -98,9 +98,9 @@ public class MiscConfig {
public PetCandyDisplayConfig petCandy = new PetCandyDisplayConfig();
@Expose
- @ConfigOption(name = "No Bits Warning", desc = "")
+ @ConfigOption(name = "Bits Features", desc = "")
@Accordion
- public NoBitsWarningConfig noBitsWarning = new NoBitsWarningConfig();
+ public BitsConfig bits = new BitsConfig();
@Expose
@ConfigOption(name = "Patcher Coords Waypoints", desc = "")
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/NoBitsWarningConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/NoBitsWarningConfig.java
deleted file mode 100644
index 2542d7728..000000000
--- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/NoBitsWarningConfig.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package at.hannibal2.skyhanni.config.features.misc;
-
-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.ConfigOption;
-
-public class NoBitsWarningConfig {
- @Expose
- @ConfigOption(name = "Enabled", desc = "Alerts you when you have no bits available.")
- @ConfigEditorBoolean
- @FeatureToggle
- public boolean enabled = true;
-
- @Expose
- @ConfigOption(name = "Notification Sound", desc = "Plays a notification sound when you get a warning.")
- @ConfigEditorBoolean
- public boolean notificationSound = true;
-}