summaryrefslogtreecommitdiff
path: root/UI/Menu/Menu.gd
diff options
context:
space:
mode:
Diffstat (limited to 'UI/Menu/Menu.gd')
-rw-r--r--UI/Menu/Menu.gd15
1 files changed, 15 insertions, 0 deletions
diff --git a/UI/Menu/Menu.gd b/UI/Menu/Menu.gd
new file mode 100644
index 0000000..400f669
--- /dev/null
+++ b/UI/Menu/Menu.gd
@@ -0,0 +1,15 @@
+extends CanvasLayer
+# needs to be a CanvasLayer as parent so it's drawn on top
+
+
+func _ready():
+ self.pause_mode = PAUSE_MODE_PROCESS
+
+
+func close():
+ get_tree().paused = false
+ self.queue_free()
+
+
+func _on_Close_pressed():
+ self.close()