fix: title screen UIs can be closed using ESC

This commit is contained in:
minjaesong
2023-09-23 01:14:54 +09:00
parent c1717c7a54
commit d87dc8fffc
23 changed files with 70 additions and 8 deletions

View File

@@ -15,7 +15,9 @@ import net.torvald.terrarum.ui.UICanvas
* Created by minjaesong on 2021-09-09.
*/
class UIFakeGradOverlay : UICanvas() {
init {
handler.allowESCtoClose = false
}
override var width: Int
get() = App.scr.width
set(value) {}
@@ -67,7 +69,9 @@ class UIFakeGradOverlay : UICanvas() {
}
class UIFakeBlurOverlay(val blurRadius: Float, val nodarken: Boolean) : UICanvas() {
init {
handler.allowESCtoClose = false
}
override var width: Int
get() = App.scr.width
set(value) {}