fix: make run menus layout and input robust

This commit is contained in:
goose
2026-10-02 17:54:49 -04:00
parent 77c5e54728
commit 2938153ca8
6 changed files with 179 additions and 111 deletions
+45 -46
View File
@@ -14,6 +14,10 @@ corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
content_margin_left = 56.0
content_margin_top = 40.0
content_margin_right = 56.0
content_margin_bottom = 40.0
[node name="MainMenu" type="Control"]
layout_mode = 3
@@ -49,74 +53,69 @@ grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBox_menu")
[node name="Title" type="Label" parent="Menu"]
layout_mode = 0
offset_top = 40.0
offset_right = 490.0
offset_bottom = 86.0
[node name="Layout" type="VBoxContainer" parent="Menu"]
layout_mode = 2
theme_override_constants/separation = 9
[node name="Title" type="Label" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 46)
layout_mode = 2
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
theme_override_font_sizes/font_size = 34
text = "DUNGEON CRAWLER WORLD"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Subtitle" type="Label" parent="Menu"]
layout_mode = 0
offset_top = 91.0
offset_right = 490.0
offset_bottom = 116.0
[node name="Subtitle" type="Label" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 25)
layout_mode = 2
theme_override_colors/font_color = Color(0.7, 0.82, 0.94, 1)
theme_override_font_sizes/font_size = 16
text = "THE DUNGEON AWAITS"
horizontal_alignment = 1
vertical_alignment = 1
[node name="NewRunButton" type="Button" parent="Menu"]
layout_mode = 0
offset_left = 120.0
offset_top = 144.0
offset_right = 370.0
offset_bottom = 184.0
[node name="ActionSpacer" type="Control" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 14)
layout_mode = 2
mouse_filter = 2
[node name="NewRunButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "NEW RUN"
[node name="ContinueButton" type="Button" parent="Menu"]
layout_mode = 0
offset_left = 120.0
offset_top = 193.0
offset_right = 370.0
offset_bottom = 233.0
[node name="ContinueButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "CONTINUE"
[node name="LoadSlotButton" type="Button" parent="Menu"]
layout_mode = 0
offset_left = 120.0
offset_top = 242.0
offset_right = 370.0
offset_bottom = 282.0
[node name="LoadSlotButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "LOAD SLOT"
[node name="OptionsButton" type="Button" parent="Menu"]
layout_mode = 0
offset_left = 120.0
offset_top = 291.0
offset_right = 370.0
offset_bottom = 331.0
[node name="OptionsButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "OPTIONS"
[node name="QuitButton" type="Button" parent="Menu"]
layout_mode = 0
offset_left = 120.0
offset_top = 340.0
offset_right = 370.0
offset_bottom = 380.0
[node name="QuitButton" type="Button" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "QUIT"
[node name="StatusLabel" type="Label" parent="Menu"]
layout_mode = 0
offset_left = 40.0
offset_top = 410.0
offset_right = 450.0
offset_bottom = 454.0
[node name="StatusSpacer" type="Control" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 6)
layout_mode = 2
mouse_filter = 2
[node name="StatusLabel" type="Label" parent="Menu/Layout"]
custom_minimum_size = Vector2(0, 44)
layout_mode = 2
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2
[node name="CharacterCreation" parent="." instance=ExtResource("2_creation")]