aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/config
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-07-21 18:29:58 -0500
committeringlettronald <inglettronald@gmail.com>2023-07-21 18:29:58 -0500
commitc53d33258ac48cd89883d5f27f380a7d30e561cb (patch)
tree16d78404c95a0c0936c3789bd290f0aeb81c7ee9 /src/main/kotlin/com/dulkirfabric/config
parent6b44a6c4446588950865a6f9def26a5777bd63ba (diff)
downloadDulkirMod-Fabric-c53d33258ac48cd89883d5f27f380a7d30e561cb.tar.gz
DulkirMod-Fabric-c53d33258ac48cd89883d5f27f380a7d30e561cb.tar.bz2
DulkirMod-Fabric-c53d33258ac48cd89883d5f27f380a7d30e561cb.zip
Bridge Bot formatting and client side specification
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/config')
-rw-r--r--src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt b/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
index 2795668..99eec24 100644
--- a/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
+++ b/src/main/kotlin/com/dulkirfabric/config/DulkirConfig.kt
@@ -219,6 +219,21 @@ class DulkirConfig {
.build()
)
+ val bridge = builder.getOrCreateCategory(Text.literal("Bridge Features"))
+
+ bridge.addEntry(
+ entryBuilder.mkToggle(Text.literal("Format Bridge Messages"), configOptions::bridgeFormatter)
+ )
+ bridge.addEntry(
+ entryBuilder.mkStringField(Text.literal("Bridge Bot IGN"), configOptions::bridgeBotName)
+ )
+ bridge.addEntry(
+ entryBuilder.startColorField(Text.literal("Bridge User Color"), configOptions.bridgeNameColor)
+ .setDefaultValue(Formatting.GOLD.colorValue!!)
+ .setSaveConsumer { newValue -> configOptions.bridgeNameColor = newValue }
+ .build()
+ )
+
builder.transparentBackground()
screen = builder.build()
}
@@ -246,7 +261,10 @@ class DulkirConfig {
var duraCooldown: Boolean = false,
var alarmTimeout: Int = 300,
var arachneKeeperWaypoints: Boolean = false,
- var arachneSpawnTimer: Boolean = false
+ var arachneSpawnTimer: Boolean = false,
+ var bridgeFormatter: Boolean = false,
+ var bridgeBotName: String = "Dilkur",
+ var bridgeNameColor: Int = Formatting.GOLD.colorValue!!
)
@Serializable