|
1 | | -[gd_scene load_steps=3 format=3 uid="uid://d4a5xfmaulku1"] |
| 1 | +[gd_scene load_steps=2 format=3 uid="uid://d4a5xfmaulku1"] |
2 | 2 |
|
3 | | -[ext_resource type="Script" uid="uid://ckf2hfrig7e7o" path="res://Framework/Scenes/MenuUI/MainMenu/MainMenu.cs" id="1_cqe0w"] |
4 | 3 | [ext_resource type="Script" uid="uid://bi551lrt82awu" path="res://Framework/Scenes/MenuUI/MainMenu/MainMenuNav.cs" id="5_sc4as"] |
5 | 4 |
|
6 | | -[node name="Main Menu" type="Control"] |
7 | | -layout_mode = 3 |
| 5 | +[node name="Main Menu" type="PanelContainer"] |
8 | 6 | anchors_preset = 15 |
9 | 7 | anchor_right = 1.0 |
10 | 8 | anchor_bottom = 1.0 |
11 | 9 | grow_horizontal = 2 |
12 | 10 | grow_vertical = 2 |
13 | | -script = ExtResource("1_cqe0w") |
14 | 11 | metadata/_edit_lock_ = true |
15 | 12 |
|
16 | | -[node name="PanelContainer" type="PanelContainer" parent="."] |
17 | | -layout_mode = 0 |
18 | | -anchor_right = 1.0 |
19 | | -anchor_bottom = 1.0 |
20 | | -grow_horizontal = 2 |
21 | | -grow_vertical = 2 |
22 | | - |
23 | | -[node name="Nav" type="VBoxContainer" parent="PanelContainer"] |
| 13 | +[node name="Nav" type="VBoxContainer" parent="."] |
24 | 14 | layout_mode = 2 |
25 | 15 | size_flags_horizontal = 4 |
26 | 16 | size_flags_vertical = 4 |
27 | 17 | alignment = 1 |
28 | 18 | script = ExtResource("5_sc4as") |
29 | 19 |
|
30 | | -[node name="Play" type="Button" parent="PanelContainer/Nav"] |
| 20 | +[node name="Play" type="Button" parent="Nav"] |
31 | 21 | custom_minimum_size = Vector2(175, 60) |
32 | 22 | layout_mode = 2 |
33 | 23 | text = "PLAY" |
34 | 24 |
|
35 | | -[node name="Mods" type="Button" parent="PanelContainer/Nav"] |
| 25 | +[node name="Mods" type="Button" parent="Nav"] |
36 | 26 | custom_minimum_size = Vector2(175, 60) |
37 | 27 | layout_mode = 2 |
38 | 28 | text = "MODS" |
39 | 29 |
|
40 | | -[node name="Options" type="Button" parent="PanelContainer/Nav"] |
| 30 | +[node name="Options" type="Button" parent="Nav"] |
41 | 31 | custom_minimum_size = Vector2(175, 60) |
42 | 32 | layout_mode = 2 |
43 | 33 | text = "OPTIONS" |
44 | 34 |
|
45 | | -[node name="Credits" type="Button" parent="PanelContainer/Nav"] |
| 35 | +[node name="Credits" type="Button" parent="Nav"] |
46 | 36 | custom_minimum_size = Vector2(175, 60) |
47 | 37 | layout_mode = 2 |
48 | 38 | text = "CREDITS" |
49 | 39 |
|
50 | | -[node name="Quit" type="Button" parent="PanelContainer/Nav"] |
| 40 | +[node name="Quit" type="Button" parent="Nav"] |
51 | 41 | custom_minimum_size = Vector2(175, 60) |
52 | 42 | layout_mode = 2 |
53 | 43 | text = "QUIT" |
54 | 44 |
|
55 | | -[node name="Margin" type="MarginContainer" parent="PanelContainer"] |
| 45 | +[node name="Socials" type="MarginContainer" parent="."] |
56 | 46 | layout_mode = 2 |
57 | 47 | size_flags_horizontal = 0 |
58 | 48 | size_flags_vertical = 8 |
59 | 49 | theme_override_constants/margin_left = 20 |
60 | 50 | theme_override_constants/margin_bottom = 10 |
61 | 51 |
|
62 | | -[node name="Socials" type="HBoxContainer" parent="PanelContainer/Margin"] |
| 52 | +[node name="HBox" type="HBoxContainer" parent="Socials"] |
63 | 53 | layout_mode = 2 |
64 | 54 | size_flags_horizontal = 0 |
65 | 55 | size_flags_vertical = 8 |
66 | 56 | theme_override_constants/separation = 15 |
67 | 57 |
|
68 | | -[node name="Discord" type="Button" parent="PanelContainer/Margin/Socials"] |
| 58 | +[node name="Discord" type="Button" parent="Socials/HBox"] |
69 | 59 | custom_minimum_size = Vector2(100, 40) |
70 | 60 | layout_mode = 2 |
71 | 61 | size_flags_horizontal = 0 |
72 | 62 | size_flags_vertical = 0 |
73 | 63 | text = "Discord" |
74 | 64 |
|
75 | | -[node name="Github" type="Button" parent="PanelContainer/Margin/Socials"] |
| 65 | +[node name="Github" type="Button" parent="Socials/HBox"] |
76 | 66 | custom_minimum_size = Vector2(100, 40) |
77 | 67 | layout_mode = 2 |
78 | 68 | text = "GitHub" |
79 | 69 |
|
80 | | -[connection signal="pressed" from="PanelContainer/Nav/Play" to="PanelContainer/Nav" method="_OnPlayPressed"] |
81 | | -[connection signal="pressed" from="PanelContainer/Nav/Mods" to="PanelContainer/Nav" method="_OnModsPressed"] |
82 | | -[connection signal="pressed" from="PanelContainer/Nav/Options" to="PanelContainer/Nav" method="_OnOptionsPressed"] |
83 | | -[connection signal="pressed" from="PanelContainer/Nav/Credits" to="PanelContainer/Nav" method="_OnCreditsPressed"] |
84 | | -[connection signal="pressed" from="PanelContainer/Nav/Quit" to="PanelContainer/Nav" method="_OnQuitPressed"] |
85 | | -[connection signal="pressed" from="PanelContainer/Margin/Socials/Discord" to="PanelContainer/Nav" method="_OnDiscordPressed"] |
86 | | -[connection signal="pressed" from="PanelContainer/Margin/Socials/Github" to="PanelContainer/Nav" method="_OnGitHubPressed"] |
| 70 | +[connection signal="pressed" from="Nav/Play" to="Nav" method="_OnPlayPressed"] |
| 71 | +[connection signal="pressed" from="Nav/Mods" to="Nav" method="_OnModsPressed"] |
| 72 | +[connection signal="pressed" from="Nav/Options" to="Nav" method="_OnOptionsPressed"] |
| 73 | +[connection signal="pressed" from="Nav/Credits" to="Nav" method="_OnCreditsPressed"] |
| 74 | +[connection signal="pressed" from="Nav/Quit" to="Nav" method="_OnQuitPressed"] |
| 75 | +[connection signal="pressed" from="Socials/HBox/Discord" to="Nav" method="_OnDiscordPressed"] |
| 76 | +[connection signal="pressed" from="Socials/HBox/Github" to="Nav" method="_OnGitHubPressed"] |
0 commit comments