From 98cae88540ebff20202cbd12a4e5aa82a17d2efd Mon Sep 17 00:00:00 2001 From: Matthias <40476420+byWambo@users.noreply.github.com> Date: Thu, 11 Jan 2024 19:23:56 +0100 Subject: Change: "Dungeon Filter" toggle changed to list (#884) Added options to change exactly what part of Dungeon Chat Filter should be used. #884 --- .../skyhanni/config/features/chat/ChatConfig.java | 38 +++++++++++++++++++--- 1 file changed, 34 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/chat/ChatConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/chat/ChatConfig.java index 52ecc0aa3..1784d916d 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/chat/ChatConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/chat/ChatConfig.java @@ -4,10 +4,14 @@ import at.hannibal2.skyhanni.config.FeatureToggle; import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.annotations.Accordion; import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; +import io.github.moulberry.moulconfig.annotations.ConfigEditorDraggableList; import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind; import io.github.moulberry.moulconfig.annotations.ConfigOption; import org.lwjgl.input.Keyboard; +import java.util.ArrayList; +import java.util.List; + public class ChatConfig { @Expose @@ -32,10 +36,36 @@ public class ChatConfig { public ChatSymbols chatSymbols = new ChatSymbols(); @Expose - @ConfigOption(name = "Dungeon Filter", desc = "Hides pickup, reminder, buff, damage, ability, puzzle and end messages in Dungeons.") - @ConfigEditorBoolean - @FeatureToggle - public boolean dungeonMessages = true; + @ConfigOption(name = "Dungeon Filter", desc = "Hide specific message types in Dungeons.") + @ConfigEditorDraggableList + public List dungeonFilteredMessageTypes = new ArrayList<>(); + + + public enum DungeonMessageTypes { + PREPARE("§bPreparation"), + START("§aClass Buffs §r/ §cMort Dialogue"), + AMBIENCE("§bAmbience"), + PICKUP("§ePickup"), + REMINDER("§cReminder"), + BUFF("§dBlessings"), + NOT_POSSIBLE("§cNot possible"), + DAMAGE("§cDamage"), + ABILITY("§dAbilities"), + PUZZLE("§dPuzzle §r/ §cQuiz"), + END("§cEnd §a(End of run spam)"), + ; + + private final String name; + + DungeonMessageTypes(String name) { + this.name = name; + } + + @Override + public String toString() { + return name; + } + } @Expose @ConfigOption(name = "Dungeon Boss Messages", desc = "Hide messages from the Watcher and bosses in the Dungeon.") -- cgit