jukebox ui wont pause the game AND not allow inventory to open

This commit is contained in:
minjaesong
2024-01-15 04:57:24 +09:00
parent 02a6468980
commit f1554c836c
5 changed files with 27 additions and 8 deletions

View File

@@ -994,6 +994,14 @@ open class TerrarumIngame(batch: FlippingSpriteBatch) : IngameInstance(batch) {
}
uiContainer.forEach {
// suppress inventory opening if fixture inventory is opened
if (uiFixture?.isClosed == false)
uiInventoryPlayer.handler.lockToggle()
else
uiInventoryPlayer.handler.unlockToggle()
when (it) {
is Id_UICanvasNullable -> it.get()?.update(Gdx.graphics.deltaTime)
is UICanvas -> it.update(Gdx.graphics.deltaTime)