Files
Azzteroid/script/canvas_load.gd

20 lines
665 B
GDScript

extends CanvasLayer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if (Input.is_action_just_pressed("back") or Input.is_action_just_pressed("ui_accept")) and $Control/Control.visible:
$Control/VBoxContainer.visible = true
$Control/Control.visible = false
$"Control/VBoxContainer/HBoxContainer/buttons/1".grab_focus()
func _on_scores_pressed() -> void:
$Control/VBoxContainer.grab_focus()
$Control/VBoxContainer.visible = false
$Control/Control.visible = true