aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod')
-rw-r--r--src/main/kotlin/dulkirmod/DulkirMod.kt2
-rw-r--r--src/main/kotlin/dulkirmod/config/DulkirConfig.kt15
-rw-r--r--src/main/kotlin/dulkirmod/config/DulkirHud.kt17
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