mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
debug hud: instant fire time, weather
This commit is contained in:
parent
f670908a4d
commit
a3a05ca259
@ -173,7 +173,7 @@ class DebugHUDElement(guiRenderer: GUIRenderer) : Element(guiRenderer), Layouted
|
|||||||
}
|
}
|
||||||
|
|
||||||
layout += TextElement(guiRenderer, "Time TBA").apply {
|
layout += TextElement(guiRenderer, "Time TBA").apply {
|
||||||
connection.world::time.observe(this) { // ToDo: Kutil 1.18: Allow instant fire
|
connection.world::time.observe(this, instant = true) {
|
||||||
text = BaseComponent(
|
text = BaseComponent(
|
||||||
"Time ", it.time, " (", it.phase, ")", ", cycling=", it.cycling, "\n",
|
"Time ", it.time, " (", it.phase, ")", ", cycling=", it.cycling, "\n",
|
||||||
"Date ", "day=", it.day, " (", it.moonPhase, ")"
|
"Date ", "day=", it.day, " (", it.moonPhase, ")"
|
||||||
@ -181,7 +181,7 @@ class DebugHUDElement(guiRenderer: GUIRenderer) : Element(guiRenderer), Layouted
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
layout += TextElement(guiRenderer, "Weather TBA").apply {
|
layout += TextElement(guiRenderer, "Weather TBA").apply {
|
||||||
connection.world::weather.observe(this) { // ToDo: Kutil 1.18: Allow instant fire
|
connection.world::weather.observe(this, instant = true) {
|
||||||
text = BaseComponent("Weather r=", it.rain, ", t=", it.thunder)
|
text = BaseComponent("Weather r=", it.rain, ", t=", it.thunder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user