mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
completely abolishing GSON; new save format impl wip
This commit is contained in:
@@ -92,7 +92,7 @@ class UINSMenu(
|
||||
|
||||
val listWidth = maxOf(
|
||||
AppLoader.fontGame.getWidth(menuTitle), minimumWidth,
|
||||
stringsFromTree.map { AppLoader.fontGame.getWidth(it) }.max() ?: 0
|
||||
stringsFromTree.map { AppLoader.fontGame.getWidth(it) }.maxOrNull() ?: 0
|
||||
)
|
||||
val uiWidth = listWidth + (2 * TEXT_OFFSETX.toInt())
|
||||
val listHeight = stringsFromTree.size * LINE_HEIGHT
|
||||
|
||||
Reference in New Issue
Block a user