aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-09-10 23:23:42 +0200
committerGitHub <noreply@github.com>2024-09-10 23:23:42 +0200
commitd6c9b63136cae3a8abf7d4ce91424dfc648dc59c (patch)
treec8e0df4cfeabe04c711b00e32df7ef1c8eab6549 /src/main/java/at/hannibal2/skyhanni/config/features
parent9acb6e88fb868ce9d591fb98cfa80730681653f6 (diff)
downloadskyhanni-d6c9b63136cae3a8abf7d4ce91424dfc648dc59c.tar.gz
skyhanni-d6c9b63136cae3a8abf7d4ce91424dfc648dc59c.tar.bz2
skyhanni-d6c9b63136cae3a8abf7d4ce91424dfc648dc59c.zip
Feature: Golden Fish Timer (#1941)
Co-authored-by: Cal <cwolfson58@gmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/GoldenFishTimerConfig.java47
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/TrophyFishingConfig.java5
2 files changed, 52 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/GoldenFishTimerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/GoldenFishTimerConfig.java
new file mode 100644
index 000000000..ca803483b
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/GoldenFishTimerConfig.java
@@ -0,0 +1,47 @@
+package at.hannibal2.skyhanni.config.features.fishing.trophyfishing;
+
+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;
+
+public class GoldenFishTimerConfig {
+
+ @Expose
+ @ConfigOption(name = "Enabled", desc = "Enable the Golden Fish Timer.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = true;
+
+ @Expose
+ @ConfigOption(name = "Nametag", desc = "Show a nametag on the Golden Fish showing how weak it is and when it will despawn.")
+ @ConfigEditorBoolean
+ public boolean nametag = true;
+
+ @Expose
+ @ConfigOption(name = "Highlight when ready", desc = "Highlight the Golden Fish when it is ready to be caught.")
+ @ConfigEditorBoolean
+ public boolean highlight = true;
+
+ @Expose
+ @ConfigOption(name = "Throw Rod Warning", desc = "Show a warning when you are close to the time limit of throwing your rod.")
+ @ConfigEditorBoolean
+ public boolean throwRodWarning = false;
+
+ @Expose
+ @ConfigOption(name = "Show Head", desc = "Show the Golden Fish head in the Golden Fish Timer GUI.")
+ @ConfigEditorBoolean
+ public boolean showHead = true;
+
+ @Expose
+ @ConfigOption(name = "Throw Rod Warning Time", desc = "The time in seconds before the throw rod warning appears.")
+ @ConfigEditorSlider(minValue = 1, maxValue = 60, minStep = 1)
+ public int throwRodWarningTime = 20;
+
+ @Expose
+ @ConfigLink(owner = GoldenFishTimerConfig.class, field = "enabled")
+ public Position position = new Position(50, 80);
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/TrophyFishingConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/TrophyFishingConfig.java
index d6b5effcb..a8df74950 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/TrophyFishingConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/TrophyFishingConfig.java
@@ -30,6 +30,11 @@ public class TrophyFishingConfig {
public SulphurSkitterBoxConfig sulphurSkitterBox = new SulphurSkitterBoxConfig();
@Expose
+ @ConfigOption(name = "Golden Fish Timer", desc = "")
+ @Accordion
+ public GoldenFishTimerConfig goldenFishTimer = new GoldenFishTimerConfig();
+
+ @Expose
@ConfigOption(name = "Fillet Tooltip", desc = "Show fillet value of Trophy Fish in tooltip.")
@ConfigEditorBoolean
@FeatureToggle