Ferme les fenêtres (des paramètres) sans mettre pause
This commit is contained in:
@@ -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()):
|
||||
|
||||
Reference in New Issue
Block a user