show title when just setting subtitle

This commit is contained in:
Bixilon 2023-02-07 21:14:59 +01:00
parent 0a69eca1cc
commit fe27ee090e
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -140,7 +140,7 @@ class TitleElement(guiRenderer: GUIRenderer) : Element(guiRenderer), LayoutedEle
}
connection.events.listen<TitleSubtitleSetEvent> {
this.subtitle.text = it.subtitle
// layout.show() // non vanilla behavior
this.show()
}
connection.events.listen<TitleTimesSetEvent> {
this.fadeInTime = it.fadeInTime * ProtocolDefinition.TICK_TIME.toLong()