summaryrefslogtreecommitdiff
path: root/demos/misc/pause/spinpause.gd
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
commit0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac (patch)
tree276c4d099e178eb67fbd14f61d77b05e3808e9e3 /demos/misc/pause/spinpause.gd
parent0e49da1687bc8192ed210947da52c9e5c5f301bb (diff)
GODOT IS OPEN SOURCE
Diffstat (limited to 'demos/misc/pause/spinpause.gd')
-rw-r--r--demos/misc/pause/spinpause.gd15
1 files changed, 15 insertions, 0 deletions
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)
+
+