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
+6 -1
View File
@@ -32,7 +32,12 @@ func set_pause(p):
GameInfo.save_settings()
func _input(_event):
if Input.is_action_just_pressed("pause"):
if (SceneManager.actual_scene
and SceneManager.actual_scene.get_scene_id() != "TITLE"
and Input.is_action_just_pressed("pause")
and not %Settings.is_visible_in_tree()
and not %Controls.is_visible_in_tree()
):
pause = not pause
func _on_timeline_ended():