fix scoreboard and ready for release

This commit is contained in:
2025-09-10 23:36:54 +02:00
parent eb0ba602b3
commit d4ae904c32
8 changed files with 112 additions and 56 deletions

View File

@@ -8,12 +8,12 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if Input.is_action_just_pressed("back") and $Control/ScrollContainer.visible:
if (Input.is_action_just_pressed("back") or Input.is_action_just_pressed("ui_accept")) and $Control/Control.visible:
$Control/VBoxContainer.visible = true
$Control/ScrollContainer.visible = false
$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/ScrollContainer.visible = true
$Control/Control.visible = true