From d13954de4de5d9a04380bb4105c13d7ae564255e Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:27:32 +0200 Subject: Feature: Starred Mob Highlight + Fels Highlight/Line (#1558) Co-authored-by: Cal Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../config/features/dungeon/DungeonConfig.java | 5 ++ .../features/dungeon/ObjectHighlighterConfig.java | 72 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/dungeon/ObjectHighlighterConfig.java (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonConfig.java index b76039da1..1729623d2 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/DungeonConfig.java @@ -67,6 +67,11 @@ public class DungeonConfig { @FeatureToggle public boolean architectNotifier = true; + @Expose + @ConfigOption(name = "Object Highlighter", desc = "Highlights various things in Dungeons.") + @Accordion + public ObjectHighlighterConfig objectHighlighter = new ObjectHighlighterConfig(); + @Expose @ConfigOption(name = "Object Hider", desc = "Hide various things in Dungeons.") @Accordion diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/ObjectHighlighterConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/ObjectHighlighterConfig.java new file mode 100644 index 000000000..385c162c6 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dungeon/ObjectHighlighterConfig.java @@ -0,0 +1,72 @@ +package at.hannibal2.skyhanni.config.features.dungeon; + +import at.hannibal2.skyhanni.config.FeatureToggle; +import com.google.gson.annotations.Expose; +import io.github.notenoughupdates.moulconfig.annotations.Accordion; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorColour; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText; +import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; +import io.github.notenoughupdates.moulconfig.observer.Property; + +public class ObjectHighlighterConfig { + + // TODO move some stuff from DungeonConfig into this + + @Expose + @ConfigOption(name = "Stared", desc = "") + @Accordion + public StarredConfig starred = new StarredConfig(); + + public static class StarredConfig { + @Expose + @ConfigOption(name = "Highlight Starred", desc = "Highlights all starred mobs in one colour.") + @ConfigEditorBoolean + @FeatureToggle + public Property highlight = Property.of(true); + + /* + TODO for someone who has time + @Expose + @ConfigOption(name = "Show Outline", desc = "Shows only a outline instead of a full highlight.") + @ConfigEditorBoolean + public Property showOutline = Property.of(true); */ + + @ConfigOption( + name = "No Chroma", + desc = "§cThe chroma setting for the color is currently not working!" + ) + @ConfigEditorInfoText + public String info; + + @Expose + @ConfigOption(name = "Colour", desc = "Color in which the stared mobs are highlighted.") + @ConfigEditorColour + public Property colour = Property.of("0:60:255:255:0"); + } + + @Expose + @ConfigOption(name = "Fels Skull", desc = "") + @Accordion + public FelConfig fel = new FelConfig(); + + public static class FelConfig { + + @Expose + @ConfigOption(name = "Highlight Fels Skull", desc = "Highlights fels that are not yet active.") + @ConfigEditorBoolean + @FeatureToggle + public Property highlight = Property.of(true); + + @Expose + @ConfigOption(name = "Draw Line", desc = "Draws a line to fels skulls. Works only if the highlight is enabled.") + @ConfigEditorBoolean + public Boolean line = false; + + @Expose + @ConfigOption(name = "Colour", desc = "Color for the fel skull and line.") + @ConfigEditorColour + public Property colour = Property.of("0:200:255:0:255"); + } + +} -- cgit