diff options
author | inglettronald <inglettronald@gmail.com> | 2023-04-02 15:08:46 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-04-02 15:08:46 -0500 |
commit | 2f6a1525e0b87fba9b144476b2fcaa54e4433596 (patch) | |
tree | fadfb062ab069fc3668293981f633d689bc623eb /src/main/kotlin | |
parent | 2fc86c0835993d2d654e5dd7bda03bcb5a530e5c (diff) | |
download | DulkirMod-2f6a1525e0b87fba9b144476b2fcaa54e4433596.tar.gz DulkirMod-2f6a1525e0b87fba9b144476b2fcaa54e4433596.tar.bz2 DulkirMod-2f6a1525e0b87fba9b144476b2fcaa54e4433596.zip |
oneconfig stuf
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/dulkirmod/DulkirMod.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/config/DulkirConfig.kt | 15 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/config/DulkirHud.kt | 17 |
3 files changed, 34 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/DulkirMod.kt b/src/main/kotlin/dulkirmod/DulkirMod.kt index 10c477d..a484e00 100644 --- a/src/main/kotlin/dulkirmod/DulkirMod.kt +++ b/src/main/kotlin/dulkirmod/DulkirMod.kt @@ -2,6 +2,7 @@ package dulkirmod import dulkirmod.command.* import dulkirmod.config.DulkirConfig +import dulkirmod.config.DulkirHud import dulkirmod.events.ChatEvent import dulkirmod.features.* import dulkirmod.features.chat.AbiphoneDND @@ -131,6 +132,7 @@ class DulkirMod { val mc: Minecraft = Minecraft.getMinecraft() var config = DulkirConfig + var hud = DulkirHud() var display: GuiScreen? = null val scope = CoroutineScope(EmptyCoroutineContext) diff --git a/src/main/kotlin/dulkirmod/config/DulkirConfig.kt b/src/main/kotlin/dulkirmod/config/DulkirConfig.kt index 29f4d34..4a33803 100644 --- a/src/main/kotlin/dulkirmod/config/DulkirConfig.kt +++ b/src/main/kotlin/dulkirmod/config/DulkirConfig.kt @@ -7,8 +7,15 @@ import cc.polyfrost.oneconfig.config.data.ModType import dulkirmod.DulkirMod import dulkirmod.utils.Utils + object DulkirConfig : Config(Mod("DulkirMod", ModType.SKYBLOCK), "dulkirmod-config.json") { + @HUD( + name = "Wither Key Display", + category = "HUD", + subcategory = "Dungeons" + ) + var witherKeyDisplayHUD: DulkirHud = DulkirHud() @Switch( name = "Patch Crimson Isle memory leak", @@ -112,6 +119,14 @@ object DulkirConfig : Config(Mod("DulkirMod", ModType.SKYBLOCK), "dulkirmod-conf ) var vanqBroadcast = false + @Switch( + name = "Cancel Armor Glint", + description = "If you want all glint gone, I suggest using Patcher for that.", + category = "Random Beta Features", + subcategory = "Random Beta Features" + ) + var cancelArmorGlint = false + @Text( name = "Throttle Notifier String", description = "How do you want to tell people you are throttled?", diff --git a/src/main/kotlin/dulkirmod/config/DulkirHud.kt b/src/main/kotlin/dulkirmod/config/DulkirHud.kt new file mode 100644 index 0000000..038e1f6 --- /dev/null +++ b/src/main/kotlin/dulkirmod/config/DulkirHud.kt @@ -0,0 +1,17 @@ +package dulkirmod.config +import cc.polyfrost.oneconfig.hud.TextHud +import dulkirmod.features.chat.DungeonKeyDisplay + + +class DulkirHud : TextHud(true) { + + + override fun getLines(lines: MutableList<String>?, example: Boolean) { + if (example) { + lines?.add(0, "Wither Key Display") + return + } + if (DungeonKeyDisplay.hasKey) + lines?.add(0, "Key Obtained") + } +}
\ No newline at end of file |