blob: 0a8ba9e3b99322ee8a2606badfe573af7b12c005 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}
}
}
}
|