From 44d5f286982bfc1640a57ae5801402bd5f26c843 Mon Sep 17 00:00:00 2001 From: Azure Date: Sun, 25 Aug 2024 17:49:19 -0400 Subject: Improvement: Make line width for 'Line to Arachne' & 'Line to Miniboss' configurable (#2406) --- .../at/hannibal2/skyhanni/config/features/combat/MobsConfig.java | 6 ++++++ .../at/hannibal2/skyhanni/config/features/slayer/SlayerConfig.java | 6 ++++++ .../java/at/hannibal2/skyhanni/features/combat/mobs/MobHighlight.kt | 2 +- .../at/hannibal2/skyhanni/features/slayer/SlayerMiniBossFeatures.kt | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) (limited to 'src') 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 { @@ -63,6 +64,11 @@ public class MobsConfig { @FeatureToggle 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", 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 { @@ -59,6 +60,11 @@ public class SlayerConfig { @FeatureToggle 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 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 ) } -- cgit