diff options
author | inglettronald <inglettronald@gmail.com> | 2023-04-18 12:46:19 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-04-18 12:46:19 -0500 |
commit | 3586217aa1d08458d81a4eb15e5b38e42793f68b (patch) | |
tree | 435bf47a5a1b9033d4e6b0a2d5212e099039961f /src/main/kotlin/dulkirmod/huds/GardenInfoHud.kt | |
parent | e933913ebe88f6b465ee862374bbd26c57906cae (diff) | |
download | DulkirMod-3586217aa1d08458d81a4eb15e5b38e42793f68b.tar.gz DulkirMod-3586217aa1d08458d81a4eb15e5b38e42793f68b.tar.bz2 DulkirMod-3586217aa1d08458d81a4eb15e5b38e42793f68b.zip |
change to location semantics
Diffstat (limited to 'src/main/kotlin/dulkirmod/huds/GardenInfoHud.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/huds/GardenInfoHud.kt | 28 |
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..0a8ba9e --- /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(false) { + 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 |