diff options
author | Azure <hello@azu.cool> | 2024-08-25 17:49:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 23:49:19 +0200 |
commit | 44d5f286982bfc1640a57ae5801402bd5f26c843 (patch) | |
tree | 8c52cf46e466112a8693583ead5c16008c6a5ff4 /src/main/java | |
parent | aa48336b2f4fa8c5bdc1fbabd6e144c475013198 (diff) | |
download | skyhanni-44d5f286982bfc1640a57ae5801402bd5f26c843.tar.gz skyhanni-44d5f286982bfc1640a57ae5801402bd5f26c843.tar.bz2 skyhanni-44d5f286982bfc1640a57ae5801402bd5f26c843.zip |
Improvement: Make line width for 'Line to Arachne' & 'Line to Miniboss' configurable (#2406)
Diffstat (limited to 'src/main/java')
4 files changed, 14 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/combat/MobsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/combat/MobsConfig.java index 0d9c2f694..f51076360 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/combat/MobsConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/combat/MobsConfig.java @@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.config.features.combat; import at.hannibal2.skyhanni.config.FeatureToggle; 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.ConfigOption; public class MobsConfig { @@ -64,6 +65,11 @@ public class MobsConfig { public boolean lineToArachne = false; @Expose + @ConfigOption(name = "Line to Arachne Width", desc = "The width of the line pointing to where Arachne is at.") + @ConfigEditorSlider(minStep = 1, minValue = 1, maxValue = 10) + public int lineToArachneWidth = 5; + + @Expose @ConfigOption( name = "Area Boss Timer", desc = "Show a timer when Area Bosses respawn.\n" + diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/SlayerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/SlayerConfig.java index 74f61be7f..fedace999 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/SlayerConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/SlayerConfig.java @@ -8,6 +8,7 @@ import com.google.gson.annotations.Expose; import io.github.notenoughupdates.moulconfig.annotations.Accordion; import io.github.notenoughupdates.moulconfig.annotations.Category; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; public class SlayerConfig { @@ -60,6 +61,11 @@ public class SlayerConfig { public boolean slayerMinibossLine = false; @Expose + @ConfigOption(name = "Line to Miniboss Width", desc = "The width of the line pointing to every Slayer Mini-Boss around you.") + @ConfigEditorSlider(minStep = 1, minValue = 1, maxValue = 10) + public int slayerMinibossLineWidth = 3; + + @Expose @ConfigOption(name = "Hide Mob Names", desc = "Hide the name of the mobs you need to kill in order for the Slayer boss to spawn. Exclude mobs that are damaged, corrupted, runic or semi rare.") @ConfigEditorBoolean @FeatureToggle diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt index af439d767..7c33afcdb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt @@ -125,7 +125,7 @@ object MobHighlight { event.exactPlayerEyeLocation(), arachne.getLorenzVec().add(y = 1), LorenzColor.RED.toColor(), - 5, + config.lineToArachneWidth, true ) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt index 1fce5eed2..0fd24e25c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt @@ -65,7 +65,7 @@ object SlayerMiniBossFeatures { event.exactPlayerEyeLocation(), mob.getLorenzVec().add(y = 1), LorenzColor.AQUA.toColor(), - 3, + config.slayerMinibossLineWidth, true ) } |