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

@ -1,7 +1,6 @@
[gd_scene load_steps=11 format=3 uid="uid://c84shrj84g4t2"]
[gd_scene load_steps=10 format=3 uid="uid://c84shrj84g4t2"]
[ext_resource type="Script" uid="uid://c06tspxwnj7pg" path="res://Scripts/UI/MusicRoom.cs" id="1_u3ui8"]
[ext_resource type="Script" uid="uid://cx63lvsuj1787" path="res://Scripts/Resources/MusicResource.cs" id="2_kybwj"]
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="2_rcbhv"]
[ext_resource type="Resource" uid="uid://byo74ews118nl" path="res://Resources/Music/No_Reason.tres" id="3_nkbmj"]
[ext_resource type="Texture2D" uid="uid://bpd4ldfmt3s51" path="res://Sprites/UI/Note.png" id="3_u3ui8"]
@ -16,7 +15,7 @@ font_size = 20
outline_size = 4
outline_color = Color(0, 0, 0, 1)
[node name="MusicRoom" type="VBoxContainer" node_paths=PackedStringArray("TracksContainer", "DescriptionLabel")]
[node name="MusicRoom" type="VBoxContainer" node_paths=PackedStringArray("TracksContainer", "DescriptionLabel", "DefaultSelectedButton")]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
@ -25,10 +24,11 @@ grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("1_u3ui8")
Tracks = Array[ExtResource("2_kybwj")]([ExtResource("3_nkbmj"), ExtResource("4_cv0ke")])
Tracks = [ExtResource("3_nkbmj"), ExtResource("4_cv0ke")]
TracksContainer = NodePath("VBoxContainer/ItemList")
Icon = ExtResource("3_u3ui8")
DescriptionLabel = NodePath("VBoxContainer/MarginContainer/DescriptionLabel")
DefaultSelectedButton = NodePath("VBoxContainer/HBoxContainer/BackButton")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2

View file

@ -6,7 +6,7 @@
[ext_resource type="Resource" uid="uid://d1lc8lhq1b05p" path="res://Resources/Debug/DebugLevels.tres" id="3_cvgqx"]
[ext_resource type="Texture2D" uid="uid://d1a0nwd4wdph7" path="res://Sprites/UI/Back_Small.png" id="5_1xl3a"]
[node name="DebugMenu" type="VBoxContainer" node_paths=PackedStringArray("ButtonsContainer")]
[node name="DebugMenu" type="VBoxContainer" node_paths=PackedStringArray("ButtonsContainer", "DefaultSelectedButton")]
process_mode = 3
anchors_preset = 15
anchor_right = 1.0
@ -17,6 +17,7 @@ script = ExtResource("1_5vtnj")
ButtonTheme = ExtResource("2_6il8q")
Levels = ExtResource("3_cvgqx")
ButtonsContainer = NodePath("ScrollContainer/Level Select")
DefaultSelectedButton = NodePath("ScrollContainer/Level Select/BackButton")
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2