Fix some bugs with chat

This commit is contained in:
2026-06-12 09:16:19 -05:00
parent b364fae1c7
commit 5668250ea9
5 changed files with 74 additions and 53 deletions
+1 -3
View File
@@ -20,7 +20,7 @@ func _applyGravity() -> void:
func _applyPlayerMovement(delta:float):
# Interactions, may move
if Input.is_action_just_pressed("interact") && interactingArea && interactingArea.hasInteraction():
if !UI.hasAdvanceableChatBox():
if !UI.hasAdvanceableChatBox() && !UI.dialogueActive:
interactingArea.interact()
return
@@ -63,8 +63,6 @@ func _applyFriction(delta:float) -> void:
entity.velocity.z *= delta * FRICTION
func _canMove() -> bool:
if UI.dialogueActive:
return false
if !UI.MAIN_CHATBOX.isClosed:
return false
if UI.GAME_MENU && UI.GAME_MENU.isOpen():