Ferme les fenêtres (des paramètres) sans mettre pause

This commit is contained in:
Altaezio
2026-07-20 18:13:47 +02:00
parent 50b517f7ea
commit 2b98447b41
5 changed files with 13 additions and 2 deletions
+4
View File
@@ -11,6 +11,10 @@ signal closed
func _ready():
update_title(title)
func _input(_event: InputEvent) -> void:
if is_visible_in_tree() and Input.is_action_just_pressed("pause"):
close_window()
func update_title(text : String):
title = text
if (is_node_ready()):