mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
jukebox ui wont pause the game AND not allow inventory to open
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user