sandbox
Last change
on this file since 49e3bfa was f7b09c8, checked in by Kevin Chapman <victory2b@…>, 4 years ago |
First Draft of world test with working movement and loading screen.
|
-
Property mode
set to
100644
|
File size:
288 bytes
|
Rev | Line | |
---|
[f7b09c8] | 1 | extends Popup
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | func _on_pause_button_pressed():
|
---|
| 5 | get_tree().paused = true
|
---|
| 6 | $pause_popup.show()
|
---|
| 7 | func _on_pause_popup_close_pressed():
|
---|
| 8 | $pause_popup.hide()
|
---|
| 9 | if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE:
|
---|
| 10 | Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
---|
| 11 | get_tree().paused = false
|
---|
Note:
See
TracBrowser
for help on using the repository browser.