mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 20:15:55 +00:00
Added navigation to main menu options
This commit is contained in:
parent
f7037fa043
commit
316880cf9d
6 changed files with 54 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -16,11 +16,15 @@ public partial class MusicRoom : MenuBase
|
|||
|
||||
[Export]
|
||||
public Label DescriptionLabel { get; private set; }
|
||||
|
||||
[Export]
|
||||
public Button DefaultSelectedButton { get; private set; }
|
||||
|
||||
private Dictionary<long, AudioNameVisualizer> _tracks = new();
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
DefaultSelectedButton.GrabFocus();
|
||||
DescriptionLabel.Text = string.Empty;
|
||||
TracksContainer.Clear();
|
||||
foreach (var track in Tracks)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue