integrate scoreboards into main menu (closes #195)

This commit is contained in:
Haze Weathers 2023-10-14 10:26:10 -04:00
parent 481edb15b7
commit 95cb7ee138
4 changed files with 99 additions and 13 deletions

View file

@ -109,6 +109,7 @@ margin_right = 100.0
margin_bottom = 13.0
rect_min_size = Vector2( 48, 0 )
focus_neighbour_right = NodePath("../Type")
focus_neighbour_bottom = NodePath("../../Scoreboard")
size_flags_vertical = 4
theme = ExtResource( 5 )
custom_colors/font_color_focus = Color( 1, 0.968627, 0.709804, 1 )
@ -125,6 +126,7 @@ margin_bottom = 13.0
rect_min_size = Vector2( 48, 0 )
focus_neighbour_left = NodePath("../Difficulty")
focus_neighbour_right = NodePath("../SpaceReserve/Completion")
focus_neighbour_bottom = NodePath("../../Scoreboard")
size_flags_vertical = 4
theme = ExtResource( 5 )
custom_colors/font_color_focus = Color( 1, 0.968627, 0.709804, 1 )
@ -153,6 +155,7 @@ margin_right = 24.0
margin_bottom = 5.0
rect_min_size = Vector2( 48, 0 )
focus_neighbour_left = NodePath("../../Type")
focus_neighbour_bottom = NodePath("../../../Scoreboard")
theme = ExtResource( 5 )
custom_colors/font_color_focus = Color( 1, 0.968627, 0.709804, 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
@ -160,19 +163,33 @@ custom_fonts/font = ExtResource( 8 )
text = "Any%"
icon_align = 1
[node name="Scoreboard" type="MarginContainer" parent="BoardsScreen"]
[node name="Scoreboard" type="HBoxContainer" parent="BoardsScreen"]
margin_top = 32.0
margin_right = 256.0
margin_bottom = 192.0
focus_neighbour_top = NodePath("../SelectScoreType/Type")
focus_mode = 2
size_flags_vertical = 3
custom_constants/margin_right = 16
custom_constants/margin_left = 16
custom_constants/margin_bottom = 16
alignment = 1
[node name="PrevBoard" type="TextureRect" parent="BoardsScreen/Scoreboard"]
unique_name_in_owner = true
material = SubResource( 2 )
margin_left = 6.0
margin_top = 76.0
margin_right = 12.0
margin_bottom = 84.0
size_flags_vertical = 4
texture = ExtResource( 6 )
flip_h = true
[node name="PanelContainer" type="PanelContainer" parent="BoardsScreen/Scoreboard"]
margin_left = 16.0
margin_right = 240.0
margin_bottom = 144.0
rect_min_size = Vector2( 224, 144 )
size_flags_horizontal = 4
size_flags_vertical = 0
[node name="MarginContainer" type="MarginContainer" parent="BoardsScreen/Scoreboard/PanelContainer"]
margin_left = 3.0
@ -296,9 +313,23 @@ margin_right = 154.0
margin_bottom = 59.0
text = "Failed to load"
[node name="NextBoard" type="TextureRect" parent="BoardsScreen/Scoreboard"]
unique_name_in_owner = true
material = SubResource( 3 )
margin_left = 244.0
margin_top = 76.0
margin_right = 250.0
margin_bottom = 84.0
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource( 6 )
[connection signal="focus_entered" from="BoardsScreen/SelectLevel/LevelTitle" to="." method="_on_LevelTitle_focus_entered"]
[connection signal="focus_exited" from="BoardsScreen/SelectLevel/LevelTitle" to="." method="_on_LevelTitle_focus_exited"]
[connection signal="gui_input" from="BoardsScreen/SelectLevel/LevelTitle" to="." method="_on_LevelTitle_gui_input"]
[connection signal="pressed" from="BoardsScreen/SelectScoreType/Difficulty" to="." method="_on_Difficulty_pressed"]
[connection signal="pressed" from="BoardsScreen/SelectScoreType/Type" to="." method="_on_Type_pressed"]
[connection signal="pressed" from="BoardsScreen/SelectScoreType/SpaceReserve/Completion" to="." method="_on_Completion_pressed"]
[connection signal="focus_entered" from="BoardsScreen/Scoreboard" to="." method="_on_Scoreboard_focus_entered"]
[connection signal="focus_exited" from="BoardsScreen/Scoreboard" to="." method="_on_Scoreboard_focus_exited"]
[connection signal="gui_input" from="BoardsScreen/Scoreboard" to="." method="_on_Scoreboard_gui_input"]