mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
fix: title screen UIs can be closed using ESC
This commit is contained in:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user