blob: efcf7769bc319262103b5a5e8f50114934d85e3e (
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.overlays
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
}
}
}
}
|