aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-08 18:20:50 +0200
committerLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-08 18:20:50 +0200
commit5065d8b93e2e8df999e335647130f9b4f60fe5b8 (patch)
tree32b5b7ba87231f691d8de532c3b2137bd5647f4b /Scripts
parent179ad5a11b5a5780df494db61ed72baae4b7cec2 (diff)
download2023-5065d8b93e2e8df999e335647130f9b4f60fe5b8.tar.gz
2023-5065d8b93e2e8df999e335647130f9b4f60fe5b8.tar.bz2
2023-5065d8b93e2e8df999e335647130f9b4f60fe5b8.zip
better pause menu
Diffstat (limited to 'Scripts')
-rw-r--r--Scripts/game.gd4
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)