godot-third-person-basic-scene/scenes/hud/hud.gd

28 lines
466 B
GDScript3
Raw Normal View History

2022-02-12 19:45:44 +00:00
extends Control
func _input(event):
if Input.is_action_pressed("ui_menu"):
$Menu.visible = ! $Menu.visible
func _on_timer_timeout():
print("fin")
$Message/Label.visible = false
func _on_quit_pressed():
#get_tree().quit()
$ConfirmQuit.popup_centered()
$ConfirmQuit.visible = true
pass
func _on_confirmation_dialog_confirmed():
get_tree().quit()
func _on_languages_pressed():
$MenuOption/Window.popup_centered()
$MenuOption/Window.visible = true