From 5065d8b93e2e8df999e335647130f9b4f60fe5b8 Mon Sep 17 00:00:00 2001 From: IcECreAm777 Date: Sat, 8 Jul 2023 18:20:50 +0200 Subject: better pause menu --- Scripts/game.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Scripts') diff --git a/Scripts/game.gd b/Scripts/game.gd index 3c4326f..42918c5 100644 --- a/Scripts/game.gd +++ b/Scripts/game.gd @@ -24,7 +24,7 @@ func _ready(): func _process(delta): if Input.is_action_just_pressed("ui_cancel"): get_tree().paused = true - $PausePopup.show() + $CanvasLayer/PausePopup.show() Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) @@ -33,7 +33,7 @@ func _on_QuitButton_pressed(): func _on_ResumeButton_pressed(): - $PausePopup.hide() + $CanvasLayer/PausePopup.hide() get_tree().paused = false Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) -- cgit