Add controller ui

This commit is contained in:
2026-06-11 20:19:15 -05:00
parent 619bf09ab9
commit 456ea1e07e
6 changed files with 98 additions and 17 deletions
+11
View File
@@ -17,3 +17,14 @@ func close() -> void:
visible = false
MAIN.close()
SETTINGS.close()
func _unhandled_input(event:InputEvent) -> void:
if !visible:
return
if event.is_action_pressed("ui_cancel"):
if SETTINGS.isOpen():
SETTINGS.close()
MAIN.open()
else:
close()
get_viewport().set_input_as_handled()