diff options
author | IcECreAm777 <hgk.1998@googlemail.com> | 2023-07-08 18:20:50 +0200 |
---|---|---|
committer | IcECreAm777 <hgk.1998@googlemail.com> | 2023-07-08 18:20:50 +0200 |
commit | 5065d8b93e2e8df999e335647130f9b4f60fe5b8 (patch) | |
tree | 32b5b7ba87231f691d8de532c3b2137bd5647f4b /Scripts/game.gd | |
parent | 179ad5a11b5a5780df494db61ed72baae4b7cec2 (diff) | |
download | 2023-5065d8b93e2e8df999e335647130f9b4f60fe5b8.tar.gz 2023-5065d8b93e2e8df999e335647130f9b4f60fe5b8.tar.bz2 2023-5065d8b93e2e8df999e335647130f9b4f60fe5b8.zip |
better pause menu
Diffstat (limited to 'Scripts/game.gd')
-rw-r--r-- | Scripts/game.gd | 4 |
1 files changed, 2 insertions, 2 deletions
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) |