mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
jukebox ui wont pause the game AND not allow inventory to open
This commit is contained in:
@@ -77,6 +77,7 @@ open class IngameInstance(val batch: FlippingSpriteBatch, val isMultiplayer: Boo
|
||||
open var consoleHandler: ConsoleWindow = ConsoleWindow()
|
||||
|
||||
var paused: Boolean = false; protected set
|
||||
var playerControlDisabled = false; protected set
|
||||
val consoleOpened: Boolean
|
||||
get() = consoleHandler.isOpened || consoleHandler.isOpening
|
||||
|
||||
@@ -200,6 +201,14 @@ open class IngameInstance(val batch: FlippingSpriteBatch, val isMultiplayer: Boo
|
||||
paused = false
|
||||
}
|
||||
|
||||
open fun disablePlayerControl() {
|
||||
playerControlDisabled = true
|
||||
}
|
||||
|
||||
open fun resumePlayerControl() {
|
||||
playerControlDisabled = false
|
||||
}
|
||||
|
||||
override fun resize(width: Int, height: Int) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user