diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-17 21:45:05 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-17 21:45:05 +0100 |
| commit | 9b54c7a79babc34332ac57c809e4c2a433e7f57c (patch) | |
| tree | cb23f6ec68d01e0be05e736432229d547b87f356 /src/main/java/at/hannibal2/skyhanni/config | |
| parent | 2f0a206d62eda0019ceaa9ac92ed2e4d44194e30 (diff) | |
| download | skyhanni-9b54c7a79babc34332ac57c809e4c2a433e7f57c.tar.gz skyhanni-9b54c7a79babc34332ac57c809e4c2a433e7f57c.tar.bz2 skyhanni-9b54c7a79babc34332ac57c809e4c2a433e7f57c.zip | |
Added barn timer.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/Features.java | 5 | ||||
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java | 24 |
2 files changed, 24 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java index 61bdf55a1..64bfe9541 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Features.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java @@ -116,6 +116,11 @@ public class Features extends Config { editOverlay(activeConfigCategory, 200, 16, misc.crimsonIsleReputationHelperPos); return; } + + if (runnableId.equals("barnTimer")) { + editOverlay(activeConfigCategory, 200, 16, fishing.barnTimerPos); + return; + } } @Expose diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java b/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java index 72fdaff73..e3be3fc00 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.config.features; +import at.hannibal2.skyhanni.config.core.config.Position; import at.hannibal2.skyhanni.config.core.config.annotations.*; import com.google.gson.annotations.Expose; @@ -10,7 +11,10 @@ public class Fishing { public boolean trophyFishing = false; @Expose - @ConfigOption(name = "Trophy Counter", desc = "Counts every single Trohy message from chat and tells you how many you got already.") + @ConfigOption( + name = "Trophy Counter", + desc = "Counts every single Trohy message from chat and tells you how many you got already." + ) @ConfigEditorBoolean @ConfigAccordionId(id = 0) public boolean trophyCounter = false; @@ -37,11 +41,21 @@ public class Fishing { public boolean thunderSparkHighlight = false; @Expose - @ConfigOption( - name = "Thunder Spark Color", - desc = "Color of the Thunder Sparks" - ) + @ConfigOption(name = "Thunder Spark Color", desc = "Color of the Thunder Sparks") @ConfigEditorColour @ConfigAccordionId(id = 1) public String thunderSparkColor = "0:255:255:255:255"; + + @Expose + @ConfigOption( + name = "Barn Fishing Timer", + desc = "Shows the time and amount of sea creatures while fishing on the barn via hub." + ) + @ConfigEditorBoolean + public boolean barnTimer = true; + + @Expose + @ConfigOption(name = "Fishing Timer Location", desc = "") + @ConfigEditorButton(runnableId = "barnTimer", buttonText = "Edit") + public Position barnTimerPos = new Position(10, 10, false, true); }
\ No newline at end of file |
