aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-04-03 20:56:48 +0200
committerGitHub <noreply@github.com>2024-04-03 20:56:48 +0200
commit82a65251bb57f87459a6ef664c6321542b5cfccc (patch)
treeaeec03713b12910d7618c1b0b294a6e18245fad0 /src/main/java/at/hannibal2/skyhanni/config/features
parent2f85351bacddb9ab3704a53c778d558a755bcc06 (diff)
downloadskyhanni-82a65251bb57f87459a6ef664c6321542b5cfccc.tar.gz
skyhanni-82a65251bb57f87459a6ef664c6321542b5cfccc.tar.bz2
skyhanni-82a65251bb57f87459a6ef664c6321542b5cfccc.zip
Feature: Pest Profit Tracker (#1321)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestProfitTrackerConfig.java36
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestsConfig.java5
2 files changed, 41 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestProfitTrackerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestProfitTrackerConfig.java
new file mode 100644
index 000000000..549acb9db
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestProfitTrackerConfig.java
@@ -0,0 +1,36 @@
+package at.hannibal2.skyhanni.config.features.garden.pests;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import at.hannibal2.skyhanni.config.core.config.Position;
+import com.google.gson.annotations.Expose;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
+import io.github.moulberry.moulconfig.annotations.ConfigOption;
+
+public class PestProfitTrackerConfig {
+
+ @Expose
+ @ConfigOption(
+ name = "Enabled",
+ desc = "Count all items you pick up when killing pests."
+ )
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Hide messages",
+ desc = "Hides regular pest drop messages."
+ )
+ @ConfigEditorBoolean
+ public boolean hideChat = true;
+
+ @Expose
+ @ConfigOption(name = "Time Displayed", desc = "Time displayed after killing a pest.")
+ @ConfigEditorSlider(minValue = 5, maxValue = 60, minStep = 1)
+ public int timeDisplayed = 30;
+
+ @Expose
+ public Position position = new Position(20, 20, false, true);
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestsConfig.java
index 95c476da8..6aada35c5 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestsConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestsConfig.java
@@ -27,6 +27,11 @@ public class PestsConfig {
public PestTimerConfig pestTimer = new PestTimerConfig();
@Expose
+ @ConfigOption(name = "Pest Profit Tracker", desc = "")
+ @Accordion
+ public PestProfitTrackerConfig pestProfitTacker = new PestProfitTrackerConfig();
+
+ @Expose
@ConfigOption(name = "Spray", desc = "")
@Accordion
public SprayConfig spray = new SprayConfig();