aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/Huds/GardenInfoHud.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod/Huds/GardenInfoHud.kt')
-rw-r--r--src/main/kotlin/dulkirmod/Huds/GardenInfoHud.kt28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/Huds/GardenInfoHud.kt b/src/main/kotlin/dulkirmod/Huds/GardenInfoHud.kt
new file mode 100644
index 0000000..f4d1afb
--- /dev/null
+++ b/src/main/kotlin/dulkirmod/Huds/GardenInfoHud.kt
@@ -0,0 +1,28 @@
+package dulkirmod.Huds
+
+import cc.polyfrost.oneconfig.hud.TextHud
+import dulkirmod.config.DulkirConfig
+import dulkirmod.utils.TabListUtils
+import dulkirmod.utils.Utils
+
+class GardenInfoHud : TextHud(true) {
+ override fun getLines(lines: MutableList<String>?, example: Boolean) {
+ if (!Utils.isInSkyblock()) return
+ if (TabListUtils.area != "Garden") return
+ var i = 0
+ if (DulkirConfig.gardenMilestoneDisplay) {
+ lines?.add(i, TabListUtils.gardenMilestone)
+ ++i
+ }
+ if (DulkirConfig.visitorInfo) {
+ lines?.add(i, "Visitors: ${TabListUtils.numVisitors} - ${TabListUtils.timeTillNextVisitor}")
+ ++i
+ }
+ if (DulkirConfig.composterAlert) {
+ if (TabListUtils.emptyComposter) {
+ lines?.add(i, "Empty Composter!")
+ ++i
+ }
+ }
+ }
+} \ No newline at end of file