aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-07-17 12:42:27 +0200
committerGitHub <noreply@github.com>2024-07-17 12:42:27 +0200
commit81358be1e6fe2ba1de02afcd2d08a969679bd14a (patch)
tree55ef8fa79c36f9a21b338e59d46b81b7bf2c3975 /src/main/java/at/hannibal2/skyhanni/config/features
parentfb7384530a123d2b6159afb0ca16db658eaa26b5 (diff)
downloadskyhanni-81358be1e6fe2ba1de02afcd2d08a969679bd14a.tar.gz
skyhanni-81358be1e6fe2ba1de02afcd2d08a969679bd14a.tar.bz2
skyhanni-81358be1e6fe2ba1de02afcd2d08a969679bd14a.zip
Feature: Crown of Avarice Counter (#2229)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/itemability/CrownOfAvariceConfig.java28
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/itemability/ItemAbilityConfig.java7
2 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/itemability/CrownOfAvariceConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/itemability/CrownOfAvariceConfig.java
new file mode 100644
index 000000000..4c23afa12
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/itemability/CrownOfAvariceConfig.java
@@ -0,0 +1,28 @@
+package at.hannibal2.skyhanni.config.features.itemability;
+
+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.ConfigLink;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+public class CrownOfAvariceConfig {
+
+ @Expose
+ @ConfigOption(name = "Counter",
+ desc = "Shows the current coins of your crown of avarice (if worn).")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enable = false;
+
+ @Expose
+ @ConfigOption(name = "Counter format",
+ desc = "Have the crown of avarice counter as short format instead of every digit.")
+ @ConfigEditorBoolean
+ public boolean shortFormat = true;
+
+ @Expose
+ @ConfigLink(owner = CrownOfAvariceConfig.class,field = "enable")
+ public Position position = new Position(20,20);
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ItemAbilityConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ItemAbilityConfig.java
index d428b591f..21ba39b8e 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ItemAbilityConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/itemability/ItemAbilityConfig.java
@@ -1,9 +1,11 @@
package at.hannibal2.skyhanni.config.features.itemability;
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.Accordion;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
public class ItemAbilityConfig {
@@ -36,6 +38,11 @@ public class ItemAbilityConfig {
@Expose
public ChickenHeadConfig chickenHead = new ChickenHeadConfig();
+ @ConfigOption(name = "Crown of Avarice", desc = "")
+ @Accordion
+ @Expose
+ public CrownOfAvariceConfig crownOfAvarice = new CrownOfAvariceConfig();
+
@Expose
@ConfigOption(name = "Depleted Bonzo's Masks",
desc = "Highlight used Bonzo's Masks and Spirit Masks with a background.")