mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
vanishing particle test
This commit is contained in:
@@ -25,7 +25,7 @@ class UITooltip : UICanvas() {
|
||||
msgBuffer.clear()
|
||||
|
||||
msgBuffer.addAll(value.split('\n'))
|
||||
msgWidth = msgBuffer.fold(0) { acc, s -> font.getWidth(s).let { if (it > acc) it else acc } }
|
||||
msgWidth = msgBuffer.maxOf { font.getWidth(it) }
|
||||
}
|
||||
|
||||
private val font = AppLoader.fontGame
|
||||
|
||||
Reference in New Issue
Block a user