From 7115379ccf5714816eeb91fc16d3a63e019c8082 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 14 Feb 2021 14:53:17 +0100 Subject: Adds user configurable key bindings --- UI/Menu/Menu.gd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 UI/Menu/Menu.gd (limited to 'UI/Menu/Menu.gd') 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() -- cgit v1.2.3