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