mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
fix: title screen UIs can be closed using ESC
This commit is contained in:
@@ -14,6 +14,10 @@ import kotlin.math.roundToInt
|
||||
*/
|
||||
class UIAutosaveNotifier : UICanvas() {
|
||||
|
||||
init {
|
||||
handler.allowESCtoClose = false
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val WIDTH = 180
|
||||
const val HEIGHT = 24
|
||||
|
||||
@@ -67,6 +67,7 @@ class UINSMenu(
|
||||
var invocationArgument: Array<Any> = arrayOf(this)
|
||||
|
||||
init {
|
||||
handler.allowESCtoClose = false
|
||||
addSubMenu(tree)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user