in-world ui textboxes
This commit is contained in:
@@ -20,7 +20,8 @@ func _applyGravity() -> void:
|
||||
func _applyPlayerMovement(delta:float):
|
||||
# Interactions, may move
|
||||
if Input.is_action_just_pressed("interact") && interactingArea && interactingArea.hasInteraction():
|
||||
interactingArea.interact()
|
||||
if !UI.hasAdvanceableChatBox():
|
||||
interactingArea.interact()
|
||||
return
|
||||
|
||||
# Directional input
|
||||
@@ -64,7 +65,7 @@ func _applyFriction(delta:float) -> void:
|
||||
func _canMove() -> bool:
|
||||
if UI.dialogueActive:
|
||||
return false
|
||||
if !UI.TEXTBOX.isClosed:
|
||||
if !UI.MAIN_CHATBOX.isClosed:
|
||||
return false
|
||||
if UI.GAME_MENU && UI.GAME_MENU.isOpen():
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user