Added navigation to main menu options

This commit is contained in:
Marco 2025-03-12 15:47:57 +01:00
commit 316880cf9d
6 changed files with 54 additions and 8 deletions

View file

@ -16,10 +16,15 @@ public partial class DebugMenu : MenuBase
[Export]
public Container ButtonsContainer { get; private set; }
[Export]
public Button DefaultSelectedButton { get; private set; }
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
DefaultSelectedButton.GrabFocus();
foreach (var level in Levels.Maps)
{
if (!level.Enabled) continue;