aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-04-02 15:08:46 -0500
committeringlettronald <inglettronald@gmail.com>2023-04-02 15:08:46 -0500
commit2f6a1525e0b87fba9b144476b2fcaa54e4433596 (patch)
treefadfb062ab069fc3668293981f633d689bc623eb
parent2fc86c0835993d2d654e5dd7bda03bcb5a530e5c (diff)
downloadDulkirMod-2f6a1525e0b87fba9b144476b2fcaa54e4433596.tar.gz
DulkirMod-2f6a1525e0b87fba9b144476b2fcaa54e4433596.tar.bz2
DulkirMod-2f6a1525e0b87fba9b144476b2fcaa54e4433596.zip
oneconfig stuf
-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
-rw-r--r--src/main/resources/mixins.dulkirmod.json1
4 files changed, 35 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
diff --git a/src/main/resources/mixins.dulkirmod.json b/src/main/resources/mixins.dulkirmod.json
index 6fc520a..ddddd2e 100644
--- a/src/main/resources/mixins.dulkirmod.json
+++ b/src/main/resources/mixins.dulkirmod.json
@@ -8,6 +8,7 @@
"MixinGuiContainer",
"MixinGuiScreen",
"MixinItemRenderer",
+ "MixinLayerArmorBase",
"MixinRendererManager"
],
"mixins": [