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

@@ -181,7 +181,10 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L
var isJumpDown = false; protected set
var isJumpJustDown = false; protected set // TODO if jump key is held in current update frame
protected inline val isGamer: Boolean
get() = if (Terrarum.ingame == null) false else this == INGAME.actorNowPlaying
get() = if (Terrarum.ingame?.playerControlDisabled != false) // if (ingame is null) or (playerControlDisabled is true)
false
else
(this == INGAME.actorNowPlaying)
private var jumpJustPressedLatched = false