From 0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 9 Feb 2014 22:10:30 -0300 Subject: GODOT IS OPEN SOURCE --- demos/misc/pause/spinpause.gd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 demos/misc/pause/spinpause.gd (limited to 'demos/misc/pause/spinpause.gd') diff --git a/demos/misc/pause/spinpause.gd b/demos/misc/pause/spinpause.gd new file mode 100644 index 0000000000..c21c13b4e1 --- /dev/null +++ b/demos/misc/pause/spinpause.gd @@ -0,0 +1,15 @@ + +extends Spatial + + +func _on_pause_pressed(): + get_node("pause_popup").set_exclusive(true) + get_node("pause_popup").popup() + get_scene().set_pause(true) + + +func _on_unpause_pressed(): + get_node("pause_popup").hide() + get_scene().set_pause(false) + + -- cgit v1.2.3