aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorMatthias <40476420+byWambo@users.noreply.github.com>2024-01-11 19:23:56 +0100
committerGitHub <noreply@github.com>2024-01-11 19:23:56 +0100
commit98cae88540ebff20202cbd12a4e5aa82a17d2efd (patch)
tree648f20ac223d5292347c1b4ad4b4e7a2810c9897 /src/main/java/at/hannibal2/skyhanni/config
parent9b16887784047faafa2cdec6ff029e1de0a815ae (diff)
downloadskyhanni-98cae88540ebff20202cbd12a4e5aa82a17d2efd.tar.gz
skyhanni-98cae88540ebff20202cbd12a4e5aa82a17d2efd.tar.bz2
skyhanni-98cae88540ebff20202cbd12a4e5aa82a17d2efd.zip
Change: "Dungeon Filter" toggle changed to list (#884)
Added options to change exactly what part of Dungeon Chat Filter should be used. #884
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/chat/ChatConfig.java38
1 files changed, 34 insertions, 4 deletions
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<DungeonMessageTypes> 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.")