fix: zoom-out text won't update lang; escmenu won't reset when scrolled from inventory

This commit is contained in:
minjaesong
2023-10-04 15:46:38 +09:00
parent a9f720647e
commit ad0c1d72f3
3 changed files with 4 additions and 2 deletions

View File

@@ -27,7 +27,8 @@ class UIScreenZoom : UICanvas(
handler.allowESCtoClose = false
}
val zoomText = "${getKeycapPC(handler.toggleKey!!)} ${Lang["GAME_ACTION_ZOOM_OUT"]}"
val zoomText: String
get() = "${getKeycapPC(handler.toggleKey!!)} ${Lang["GAME_ACTION_ZOOM_OUT"]}"
override var width = App.fontGame.getWidth(zoomText)
override var height = App.fontGame.lineHeight.toInt()