From d6c9b63136cae3a8abf7d4ce91424dfc648dc59c Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:23:42 +0200 Subject: Feature: Golden Fish Timer (#1941) Co-authored-by: Cal Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: ItsEmpa --- .../trophyfishing/GoldenFishTimerConfig.java | 47 ++++++++++++++++++++++ .../fishing/trophyfishing/TrophyFishingConfig.java | 5 +++ 2 files changed, 52 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/GoldenFishTimerConfig.java (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') 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 @@ -29,6 +29,11 @@ public class TrophyFishingConfig { @Expose 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 -- cgit