aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/config/Config.kt
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-10-03 02:51:09 -0500
committeringle <inglettronald@gmail.com>2022-10-03 02:51:09 -0500
commitb72e46efc1893883479b21482d8ef00f58971571 (patch)
tree0d41bca6049af80c1cfd3b413ea3b965a9e7beea /src/main/kotlin/dulkirmod/config/Config.kt
parent03462869f508f549eff1971262d708ffc7d3bfbc (diff)
downloadDulkirMod-b72e46efc1893883479b21482d8ef00f58971571.tar.gz
DulkirMod-b72e46efc1893883479b21482d8ef00f58971571.tar.bz2
DulkirMod-b72e46efc1893883479b21482d8ef00f58971571.zip
Added Bridge Support
Diffstat (limited to 'src/main/kotlin/dulkirmod/config/Config.kt')
-rw-r--r--src/main/kotlin/dulkirmod/config/Config.kt53
1 files changed, 49 insertions, 4 deletions
diff --git a/src/main/kotlin/dulkirmod/config/Config.kt b/src/main/kotlin/dulkirmod/config/Config.kt
index 1a50b88..d17ef47 100644
--- a/src/main/kotlin/dulkirmod/config/Config.kt
+++ b/src/main/kotlin/dulkirmod/config/Config.kt
@@ -1,16 +1,13 @@
package dulkirmod.config
import dulkirmod.DulkirMod
+import dulkirmod.utils.Utils
import gg.essential.vigilance.Vigilant
import gg.essential.vigilance.data.Category
import gg.essential.vigilance.data.Property
import gg.essential.vigilance.data.PropertyType
import gg.essential.vigilance.data.SortingBehavior
-import dulkirmod.DulkirMod.Companion.display
-import dulkirmod.utils.Utils
-import java.awt.Color
import java.io.File
-import java.util.function.Consumer
object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", sortingBehavior = ConfigSorting) {
@@ -242,6 +239,50 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so
)
var noReverse3rdPerson = false
+ @Property(
+ type = PropertyType.SWITCH,
+ name = "Bridge Bot Formatter",
+ description = "Global Toggle",
+ category = "Bridge"
+ )
+ var bridgeBot = false
+
+ @Property(
+ type = PropertyType.TEXT,
+ name = "Bridge Bot Name",
+ description = "Not case-sensitive",
+ category = "Bridge",
+ placeholder = "Bweefing",
+ protectedText = false
+ )
+ var botName: String = "Bweefing"
+
+ @Property(
+ type = PropertyType.SELECTOR,
+ name = "Bridge Chatter Name Color",
+ description = "Pick how the player name looks.",
+ category = "Bridge",
+ options = ["§0Black",
+ "§1Dark Blue",
+ "§2Dark Green",
+ "§3Dark Aqua",
+ "§4Dark Red",
+ "§5Dark Purple",
+ "§6Gold",
+ "§7Gray",
+ "§8Dark Gray",
+ "§9Blue",
+ "§aGreen",
+ "§bAqua",
+ "§cRed",
+ "§dLight Purple",
+ "§eYellow",
+ "§fWhite",
+ "§zSBA Chroma"
+ ]
+ )
+ var bridgeColor = 6
+
fun init() {
initialize()
@@ -251,6 +292,10 @@ object Config : Vigilant(File("./config/dulkirmod/config.toml"), "DulkirMod", so
"Custom Animations",
"All settings that are related to custom animations. Mostly help from Aton."
)
+ setCategoryDescription(
+ "Bridge",
+ "Expected format: (bridge bot user) > (sent message) - without any parenthesis."
+ )
}
private object ConfigSorting : SortingBehavior() {
override fun getCategoryComparator(): Comparator<in Category> = Comparator { o1, o2 ->