calendar UI

This commit is contained in:
minjaesong
2023-08-15 14:58:50 +09:00
parent 8db1228e70
commit 3fce5d7e95
14 changed files with 207 additions and 93 deletions

View File

@@ -30,7 +30,7 @@ class UIHandler(//var UI: UICanvas,
// UI positions itself? (you must g.flush() yourself after the g.translate(Int, Int))
var customPositioning: Boolean = false, // mainly used by vital meter
var doNotWarnConstant: Boolean = false,
internal var allowESCtoClose: Boolean = false,
internal var allowESCtoClose: Boolean = true,
var uiTogglerFunctionDefault: ((UIHandler) -> Unit)? = null
): Disposable {
@@ -214,7 +214,7 @@ void main() {
}
// ESC is a master key for closing
if (allowESCtoClose && Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE) && isOpened) {
if (!alwaysVisible && allowESCtoClose && Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE) && isOpened) {
setAsClose()
}
}