diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-03-26 19:08:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 19:08:35 +0100 |
commit | 5c2e918513df867425b133f53de3df6cd41b67f2 (patch) | |
tree | f5b2830e0e104a08f9403a95aedaf57ca0ec0aa3 /src/main/java/at/hannibal2/skyhanni/config | |
parent | 670b115fae0536e495e7042df84f371e1568d728 (diff) | |
download | skyhanni-5c2e918513df867425b133f53de3df6cd41b67f2.tar.gz skyhanni-5c2e918513df867425b133f53de3df6cd41b67f2.tar.bz2 skyhanni-5c2e918513df867425b133f53de3df6cd41b67f2.zip |
Feature: Pest Waypoint (#1268)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestWaypointConfig.java | 43 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestsConfig.java | 5 |
2 files changed, 48 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestWaypointConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestWaypointConfig.java new file mode 100644 index 000000000..59c54ec7f --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestWaypointConfig.java @@ -0,0 +1,43 @@ +package at.hannibal2.skyhanni.config.features.garden.pests; + +import at.hannibal2.skyhanni.config.FeatureToggle; +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 PestWaypointConfig { + + @Expose + @ConfigOption( + name = "Enabled", + desc = "Show a waypoint of the next pest when using a vacuum. Uses the particles and math to detect the location from everywhere in the garden." + ) + @ConfigEditorBoolean + @FeatureToggle + public boolean enabled = true; + + @Expose + @ConfigOption( + name = "Hide Particles", + desc = "Hide the particles of the ability." + ) + @ConfigEditorBoolean + public boolean hideParticles = true; + + @Expose + @ConfigOption( + name = "Draw Line", + desc = "Draw a line to the waypoint." + ) + @ConfigEditorBoolean + public boolean drawLine = true; + + @Expose + @ConfigOption( + name = "Show For Seconds", + desc = "The waypoint will disappear after this number of seconds." + ) + @ConfigEditorSlider(minValue = 5, maxValue = 20, minStep = 1) + public int showForSeconds = 15; +} 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 94e972dfe..95c476da8 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 @@ -17,6 +17,11 @@ public class PestsConfig { public PestFinderConfig pestFinder = new PestFinderConfig(); @Expose + @ConfigOption(name = "Pest Waypoint", desc = "") + @Accordion + public PestWaypointConfig pestWaypoint = new PestWaypointConfig(); + + @Expose @ConfigOption(name = "Pest Timer", desc = "") @Accordion public PestTimerConfig pestTimer = new PestTimerConfig(); |