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

31 lines
547 B
GDScript

extends Control
func _input(_event):
if Input.is_action_just_pressed("ui_menu"):
$Menu.visible = ! $Menu.visible
func _on_timer_timeout():
$Message/Label.visible = false
func _on_quit_pressed():
$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
func _on_keys_pressed():
#$MenuControl/Window.popup_centered()
#$MenuControl/Window.visible = true
pass