sandbox
Last change
on this file since 3c8ca52 was 3c8ca52, checked in by Kevin Chapman <victory2b@…>, 3 years ago |
(WIP) About to remove pause menu for testing.
|
-
Property mode
set to
100644
|
File size:
462 bytes
|
Line | |
---|
1 | extends Control
|
---|
2 |
|
---|
3 |
|
---|
4 | # Called when the node enters the scene tree for the first time.
|
---|
5 | func _on_pause_button_pressed():
|
---|
6 | get_tree().paused = true
|
---|
7 | $pause_popup.show()
|
---|
8 | func _on_pause_popup_close_pressed():
|
---|
9 | $pause_popup.hide()
|
---|
10 | if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE:
|
---|
11 | Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
---|
12 | get_tree().paused = false
|
---|
13 |
|
---|
14 | # Called every frame. 'delta' is the elapsed time since the previous frame.
|
---|
15 | #func _process(delta):
|
---|
16 | # pass
|
---|
Note:
See
TracBrowser
for help on using the repository browser.