mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
F4 to hide GUI
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user