aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/config
diff options
context:
space:
mode:
authorKevin <92656833+kevinthegreat1@users.noreply.github.com>2024-01-11 04:25:18 +0800
committerGitHub <noreply@github.com>2024-01-10 15:25:18 -0500
commit52e4ce7fe81bb2af8af102b0270c0eac12a34f48 (patch)
tree8347ce567c830124fb7035693d607c7e9d630285 /src/main/java/de/hysky/skyblocker/config
parent54bfef4b1e2d9d2b3abd1649bf01d7856adf7ad4 (diff)
downloadSkyblocker-52e4ce7fe81bb2af8af102b0270c0eac12a34f48.tar.gz
Skyblocker-52e4ce7fe81bb2af8af102b0270c0eac12a34f48.tar.bz2
Skyblocker-52e4ce7fe81bb2af8af102b0270c0eac12a34f48.zip
Add dungeon score title and sound (#480)
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/config')
-rw-r--r--src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java16
-rw-r--r--src/main/java/de/hysky/skyblocker/config/categories/DungeonsCategory.java52
2 files changed, 56 insertions, 12 deletions
diff --git a/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java b/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java
index f8eb4e55..83c69d2c 100644
--- a/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java
+++ b/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java
@@ -729,13 +729,25 @@ public class SkyblockerConfig {
public static class DungeonScore {
@SerialEntry
- public boolean enableDungeonScore270 = true;
+ public boolean enableDungeonScore270Message = false;
+
+ @SerialEntry
+ public boolean enableDungeonScore270Title = false;
+
+ @SerialEntry
+ public boolean enableDungeonScore270Sound = false;
@SerialEntry
public String dungeonScore270Message = "270 Score Reached!";
@SerialEntry
- public boolean enableDungeonScore300 = true;
+ public boolean enableDungeonScore300Message = true;
+
+ @SerialEntry
+ public boolean enableDungeonScore300Title = true;
+
+ @SerialEntry
+ public boolean enableDungeonScore300Sound = true;
@SerialEntry
public String dungeonScore300Message = "300 Score Reached!";
diff --git a/src/main/java/de/hysky/skyblocker/config/categories/DungeonsCategory.java b/src/main/java/de/hysky/skyblocker/config/categories/DungeonsCategory.java
index e4340ebc..8872953e 100644
--- a/src/main/java/de/hysky/skyblocker/config/categories/DungeonsCategory.java
+++ b/src/main/java/de/hysky/skyblocker/config/categories/DungeonsCategory.java
@@ -172,11 +172,27 @@ public class DungeonsCategory {
.name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore"))
.collapsed(true)
.option(Option.<Boolean>createBuilder()
- .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScore", 270))
- .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScore.@Tooltip", 270)))
- .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore270,
- () -> config.locations.dungeons.dungeonScore.enableDungeonScore270,
- newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore270 = newValue)
+ .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreMessage", 270))
+ .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreMessage.@Tooltip", 270)))
+ .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore270Message,
+ () -> config.locations.dungeons.dungeonScore.enableDungeonScore270Message,
+ newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore270Message = newValue)
+ .controller(ConfigUtils::createBooleanController)
+ .build())
+ .option(Option.<Boolean>createBuilder()
+ .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreTitle", 270))
+ .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreTitle.@Tooltip", 270)))
+ .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore270Title,
+ () -> config.locations.dungeons.dungeonScore.enableDungeonScore270Title,
+ newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore270Title = newValue)
+ .controller(ConfigUtils::createBooleanController)
+ .build())
+ .option(Option.<Boolean>createBuilder()
+ .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreSound", 270))
+ .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreSound.@Tooltip", 270)))
+ .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore270Sound,
+ () -> config.locations.dungeons.dungeonScore.enableDungeonScore270Sound,
+ newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore270Sound = newValue)
.controller(ConfigUtils::createBooleanController)
.build())
.option(Option.<String>createBuilder()
@@ -188,11 +204,27 @@ public class DungeonsCategory {
.controller(StringControllerBuilder::create)
.build())
.option(Option.<Boolean>createBuilder()
- .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScore", 300))
- .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScore.@Tooltip", 300)))
- .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore300,
- () -> config.locations.dungeons.dungeonScore.enableDungeonScore300,
- newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore300 = newValue)
+ .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreMessage", 300))
+ .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreMessage.@Tooltip", 300)))
+ .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore300Message,
+ () -> config.locations.dungeons.dungeonScore.enableDungeonScore300Message,
+ newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore300Message = newValue)
+ .controller(ConfigUtils::createBooleanController)
+ .build())
+ .option(Option.<Boolean>createBuilder()
+ .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreTitle", 300))
+ .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreTitle.@Tooltip", 300)))
+ .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore300Title,
+ () -> config.locations.dungeons.dungeonScore.enableDungeonScore300Title,
+ newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore300Title = newValue)
+ .controller(ConfigUtils::createBooleanController)
+ .build())
+ .option(Option.<Boolean>createBuilder()
+ .name(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreSound", 300))
+ .description(OptionDescription.of(Text.translatable("text.autoconfig.skyblocker.option.locations.dungeons.dungeonScore.enableDungeonScoreSound.@Tooltip", 300)))
+ .binding(defaults.locations.dungeons.dungeonScore.enableDungeonScore300Sound,
+ () -> config.locations.dungeons.dungeonScore.enableDungeonScore300Sound,
+ newValue -> config.locations.dungeons.dungeonScore.enableDungeonScore300Sound = newValue)
.controller(ConfigUtils::createBooleanController)
.build())
.option(Option.<String>createBuilder()