F4 to hide GUI

This commit is contained in:
minjaesong
2023-08-25 09:11:56 +09:00
parent 32e750eb6a
commit eeee1ebdbc
4 changed files with 10 additions and 3 deletions

View File

@@ -391,8 +391,10 @@ object IngameRenderer : Disposable {
batch.shader = null
batch.color = Color.WHITE
uiContainer?.forEach {
it?.render(batch, camera)
if (!KeyToggler.isOn(Input.Keys.F4)) {
uiContainer?.forEach {
it?.render(batch, camera)
}
}
}

View File

@@ -258,6 +258,8 @@ class TitleScreen(batch: FlippingSpriteBatch) : IngameInstance(batch) {
override fun show() {
printdbg(this, "show() called")
KeyToggler.forceSet(Input.Keys.F4, false)
initViewPort(App.scr.width, App.scr.height)