Basic game template addon
This commit is contained in:
26
menus/scenes/windows/level_lost_window.gd
Normal file
26
menus/scenes/windows/level_lost_window.gd
Normal file
@@ -0,0 +1,26 @@
|
||||
@tool
|
||||
extends OverlaidWindow
|
||||
|
||||
signal restart_pressed
|
||||
signal main_menu_pressed
|
||||
|
||||
func _ready():
|
||||
if OS.has_feature("web"):
|
||||
%ExitButton.hide()
|
||||
|
||||
func _on_exit_button_pressed():
|
||||
%ExitConfirmation.show()
|
||||
|
||||
func _on_main_menu_button_pressed():
|
||||
%MainMenuConfirmation.show()
|
||||
|
||||
func _on_close_button_pressed():
|
||||
restart_pressed.emit()
|
||||
close()
|
||||
|
||||
func _on_main_menu_confirmation_confirmed():
|
||||
main_menu_pressed.emit()
|
||||
close()
|
||||
|
||||
func _on_exit_confirmation_confirmed():
|
||||
get_tree().quit()
|
||||
Reference in New Issue
Block a user