summaryrefslogtreecommitdiff
path: root/demos/misc/pause
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
parent0e49da1687bc8192ed210947da52c9e5c5f301bb (diff)
GODOT IS OPEN SOURCE
Diffstat (limited to 'demos/misc/pause')
-rw-r--r--demos/misc/pause/engine.cfg5
-rw-r--r--demos/misc/pause/icon.pngbin0 -> 5236 bytes
-rw-r--r--demos/misc/pause/spinpause.gd15
-rw-r--r--demos/misc/pause/spinpause.scnbin0 -> 3331 bytes
4 files changed, 20 insertions, 0 deletions
diff --git a/demos/misc/pause/engine.cfg b/demos/misc/pause/engine.cfg
new file mode 100644
index 0000000000..a5cb20cc7f
--- /dev/null
+++ b/demos/misc/pause/engine.cfg
@@ -0,0 +1,5 @@
+[application]
+
+name="Pause"
+main_scene="res://spinpause.scn"
+icon="res://icon.png"
diff --git a/demos/misc/pause/icon.png b/demos/misc/pause/icon.png
new file mode 100644
index 0000000000..49b3fd4053
--- /dev/null
+++ b/demos/misc/pause/icon.png
Binary files differ
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)
+
+
diff --git a/demos/misc/pause/spinpause.scn b/demos/misc/pause/spinpause.scn
new file mode 100644
index 0000000000..a3835c4374
--- /dev/null
+++ b/demos/misc/pause/spinpause.scn
Binary files differ