mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
GODOT IS OPEN SOURCE
This commit is contained in:
5
misc/pause/engine.cfg
Normal file
5
misc/pause/engine.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
[application]
|
||||
|
||||
name="Pause"
|
||||
main_scene="res://spinpause.scn"
|
||||
icon="res://icon.png"
|
||||
BIN
misc/pause/icon.png
Normal file
BIN
misc/pause/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
15
misc/pause/spinpause.gd
Normal file
15
misc/pause/spinpause.gd
Normal file
@@ -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)
|
||||
|
||||
|
||||
BIN
misc/pause/spinpause.scn
Normal file
BIN
misc/pause/spinpause.scn
Normal file
Binary file not shown.
Reference in New Issue
Block a user