diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-03-23 19:14:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 19:14:25 +0100 |
commit | 44014aa68a8c672c779f38202a215ab1e8dcd8c5 (patch) | |
tree | 08296df55bca53055497bb26253f24b1d7423c18 /src/main/java/at/hannibal2/skyhanni/config | |
parent | 54aba6cbdd46da9f4c9d064382c0f487d06e3c0b (diff) | |
download | skyhanni-44014aa68a8c672c779f38202a215ab1e8dcd8c5.tar.gz skyhanni-44014aa68a8c672c779f38202a215ab1e8dcd8c5.tar.bz2 skyhanni-44014aa68a8c672c779f38202a215ab1e8dcd8c5.zip |
Feature: Totem Of Corruption Overlay & Effective Area (#1139)
Co-authored-by: hannibal2 <24389977+hannibal002@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/fishing/FishingConfig.java | 5 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/fishing/TotemOfCorruptionConfig.java | 51 |
2 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingConfig.java index d0bf5d1f3..0814f3a40 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingConfig.java @@ -56,6 +56,11 @@ public class FishingConfig { public FishingProfitTrackerConfig fishingProfitTracker = new FishingProfitTrackerConfig(); @Expose + @ConfigOption(name = "Totem of Corruption", desc = "") + @Accordion + public TotemOfCorruptionConfig totemOfCorruption = new TotemOfCorruptionConfig(); + + @Expose @ConfigOption(name = "Sea Creature Tracker", desc = "") @Accordion public SeaCreatureTrackerConfig seaCreatureTracker = new SeaCreatureTrackerConfig(); diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/TotemOfCorruptionConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/TotemOfCorruptionConfig.java new file mode 100644 index 000000000..67dbf364f --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/TotemOfCorruptionConfig.java @@ -0,0 +1,51 @@ +package at.hannibal2.skyhanni.config.features.fishing; + +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.ConfigEditorColour; +import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; +import io.github.moulberry.moulconfig.annotations.ConfigOption; + +public class TotemOfCorruptionConfig { + + @Expose + @ConfigOption(name = "Show Overlay", desc = "Show the Totem of Corruption overlay." + + "\nShows the totem, in which effective area you are in, with the longest time left." + + "\n§cThis needs to be enabled for the other options to work.") + @ConfigEditorBoolean + @FeatureToggle + public boolean showOverlay = true; + + @Expose + @ConfigOption(name = "Distance Threshold", desc = "The minimum distance to the Totem of Corruption for the overlay." + + "\nThe effective distance of the totem is 16." + + "\n§cLimited by how far you can see the nametags.") + @ConfigEditorSlider(minValue = 0, maxValue = 100, minStep = 1) + public int distanceThreshold = 16; + + @Expose + @ConfigOption(name = "Hide Particles", desc = "Hide the particles of the Totem of Corruption.") + @ConfigEditorBoolean + public boolean hideParticles = true; + + @Expose + @ConfigOption(name = "Show Effective Area", desc = "Show the effective area (16 blocks) of the Totem of Corruption.") + @ConfigEditorBoolean + public boolean showEffectiveArea = true; + + @Expose + @ConfigOption(name = "Color of the area", desc = "The color of the area of the Totem of Corruption.") + @ConfigEditorColour + public String color = "0:153:18:159:85"; + + @Expose + @ConfigOption(name = "Warn when about to expire", desc = "Select the time in seconds when the totem is about to expire to warn you." + + "\nSelect 0 to disable.") + @ConfigEditorSlider(minValue = 0, maxValue = 60, minStep = 1) + public int warnWhenAboutToExpire = 5; + + @Expose + public Position position = new Position(50, 20, false, true); +} |