aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/huds/KeyHud.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-04-18 12:46:19 -0500
committeringlettronald <inglettronald@gmail.com>2023-04-18 12:46:19 -0500
commit3586217aa1d08458d81a4eb15e5b38e42793f68b (patch)
tree435bf47a5a1b9033d4e6b0a2d5212e099039961f /src/main/kotlin/dulkirmod/huds/KeyHud.kt
parente933913ebe88f6b465ee862374bbd26c57906cae (diff)
downloadDulkirMod-3586217aa1d08458d81a4eb15e5b38e42793f68b.tar.gz
DulkirMod-3586217aa1d08458d81a4eb15e5b38e42793f68b.tar.bz2
DulkirMod-3586217aa1d08458d81a4eb15e5b38e42793f68b.zip
change to location semantics
Diffstat (limited to 'src/main/kotlin/dulkirmod/huds/KeyHud.kt')
-rw-r--r--src/main/kotlin/dulkirmod/huds/KeyHud.kt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/huds/KeyHud.kt b/src/main/kotlin/dulkirmod/huds/KeyHud.kt
new file mode 100644
index 0000000..597696e
--- /dev/null
+++ b/src/main/kotlin/dulkirmod/huds/KeyHud.kt
@@ -0,0 +1,16 @@
+package dulkirmod.huds
+import cc.polyfrost.oneconfig.hud.TextHud
+import dulkirmod.features.chat.DungeonKeyDisplay
+
+
+class KeyHud : TextHud(false) {
+
+ 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