source: Studio/Dead_Popup.gd@ 3c8ca52

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
Line 
1extends Popup
2
3onready var dead
4
5# Called when the node enters the scene tree for the first time.
6func _on_dead():
7# pass
8# is_visible_in_tree
9 popup_centered()
10# get_tree().dead = true
11# $dead_popup.show()
12func _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
19func _on_Dead_Popup_hide():
20 pass # Replace with function body.
21
22
23func _on_Dead_Popup_visibility_changed():
24 pass # Replace with function body.
Note: See TracBrowser for help on using the repository browser.