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:
536 bytes
|
Rev | Line | |
---|
[3c8ca52] | 1 | extends Popup
|
---|
| 2 |
|
---|
| 3 | onready var dead
|
---|
| 4 |
|
---|
| 5 | # Called when the node enters the scene tree for the first time.
|
---|
| 6 | func _on_dead():
|
---|
| 7 | # pass
|
---|
| 8 | # is_visible_in_tree
|
---|
| 9 | popup_centered()
|
---|
| 10 | # get_tree().dead = true
|
---|
| 11 | # $dead_popup.show()
|
---|
| 12 | func _on_respaun_pressed():
|
---|
| 13 | $dead_popup.hide()
|
---|
| 14 | if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE:
|
---|
| 15 | Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
---|
| 16 | get_tree().paused = false
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | func _on_Dead_Popup_hide():
|
---|
| 20 | pass # Replace with function body.
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | func _on_Dead_Popup_visibility_changed():
|
---|
| 24 | pass # Replace with function body.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.