Improved main scene code

This commit is contained in:
2024-01-29 12:32:06 +01:00
parent 19d81aed63
commit 6f49400770
7 changed files with 71 additions and 67 deletions

View File

@ -8,6 +8,7 @@ func _unhandled_input(event):
if event.is_action_pressed("open_chat"):
call_deferred("grab_focus")
get_viewport().set_input_as_handled()
func _on_focus_entered():
Global.interacting_with_ui = true