mirror of https://github.com/kami-blue/client
[fix] ShowDate / ShowTime options not working in Time HUD
Signed-off-by: Dominika <sokolov.dominika@gmail.com>
This commit is contained in:
parent
978364f111
commit
c1dbe4b84f
|
@ -16,9 +16,12 @@ object Time : LabelHud(
|
|||
private val timeFormat = setting("TimeFormat", TimeUtils.TimeFormat.HHMM, { showTime.value })
|
||||
private val timeUnit = setting("TimeUnit", TimeUtils.TimeUnit.H12, { showTime.value })
|
||||
|
||||
override val minWidth = 10f
|
||||
override val minHeight = 10f
|
||||
|
||||
override fun updateText() {
|
||||
displayText.addLine(TimeUtils.getDate(dateFormat.value))
|
||||
displayText.addLine(TimeUtils.getTime(timeFormat.value, timeUnit.value))
|
||||
if (showDate.value) displayText.addLine(TimeUtils.getDate(dateFormat.value))
|
||||
if (showTime.value) displayText.addLine(TimeUtils.getTime(timeFormat.value, timeUnit.value))
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue