Simple title screen and level select menu

This commit is contained in:
blinry 2020-12-23 12:01:07 +01:00
parent 2e6d30134c
commit 8bfba3f0aa
8 changed files with 225 additions and 46 deletions
scenes

View file

@ -67,7 +67,7 @@ mouse_filter = 2
size_flags_vertical = 3
[node name="Repositories" type="VBoxContainer" parent="Rows/Columns"]
margin_right = 1260.0
margin_right = 1266.0
margin_bottom = 782.0
mouse_filter = 2
size_flags_horizontal = 3
@ -75,7 +75,7 @@ size_flags_stretch_ratio = 2.0
custom_constants/separation = 8
[node name="RightSide" type="VBoxContainer" parent="Rows/Columns"]
margin_left = 1265.0
margin_left = 1271.0
margin_right = 1904.0
margin_bottom = 782.0
size_flags_horizontal = 3
@ -83,18 +83,19 @@ size_flags_vertical = 3
custom_constants/separation = 8
[node name="LevelInfo" type="VBoxContainer" parent="Rows/Columns/RightSide"]
margin_right = 639.0
margin_right = 633.0
margin_bottom = 383.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 8
[node name="Menu" type="HBoxContainer" parent="Rows/Columns/RightSide/LevelInfo"]
margin_right = 639.0
margin_right = 633.0
margin_bottom = 39.0
custom_constants/separation = 8
[node name="ChapterSelect" type="OptionButton" parent="Rows/Columns/RightSide/LevelInfo/Menu"]
visible = false
margin_right = 187.0
margin_bottom = 39.0
focus_mode = 0
@ -102,17 +103,27 @@ enabled_focus_mode = 0
text = "Select chapter..."
[node name="LevelSelect" type="OptionButton" parent="Rows/Columns/RightSide/LevelInfo/Menu"]
margin_left = 195.0
margin_right = 354.0
visible = false
margin_right = 159.0
margin_bottom = 39.0
focus_mode = 0
enabled_focus_mode = 0
text = "Select level..."
expand_icon = true
[node name="ReloadButton" type="Button" parent="Rows/Columns/RightSide/LevelInfo/Menu"]
margin_left = 362.0
margin_right = 450.0
[node name="BackButton" type="Button" parent="Rows/Columns/RightSide/LevelInfo/Menu"]
margin_right = 65.0
margin_bottom = 39.0
focus_mode = 0
enabled_focus_mode = 0
text = "Back"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ReloadButton2" type="Button" parent="Rows/Columns/RightSide/LevelInfo/Menu"]
margin_left = 73.0
margin_right = 161.0
margin_bottom = 39.0
focus_mode = 0
enabled_focus_mode = 0
@ -134,8 +145,8 @@ __meta__ = {
}
[node name="Tip!" type="Button" parent="Rows/Columns/RightSide/LevelInfo/Menu"]
margin_left = 458.0
margin_right = 514.0
margin_left = 169.0
margin_right = 225.0
margin_bottom = 39.0
focus_mode = 0
enabled_focus_mode = 0
@ -145,8 +156,8 @@ __meta__ = {
}
[node name="NextLevelButton" type="Button" parent="Rows/Columns/RightSide/LevelInfo/Menu"]
margin_left = 522.0
margin_right = 639.0
margin_left = 233.0
margin_right = 350.0
margin_bottom = 39.0
focus_mode = 0
custom_styles/hover = SubResource( 1 )
@ -159,7 +170,7 @@ __meta__ = {
[node name="LevelPanel" type="VBoxContainer" parent="Rows/Columns/RightSide/LevelInfo"]
margin_top = 47.0
margin_right = 639.0
margin_right = 633.0
margin_bottom = 383.0
size_flags_vertical = 3
@ -175,7 +186,7 @@ __meta__ = {
}
[node name="Text" type="Control" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"]
margin_right = 639.0
margin_right = 633.0
margin_bottom = 336.0
size_flags_vertical = 3
@ -206,7 +217,7 @@ __meta__ = {
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 391.0
margin_right = 639.0
margin_right = 633.0
margin_bottom = 582.0
size_flags_vertical = 3
size_flags_stretch_ratio = 0.5
@ -217,7 +228,7 @@ mode = 2
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 590.0
margin_right = 639.0
margin_right = 633.0
margin_bottom = 782.0
size_flags_vertical = 3
size_flags_stretch_ratio = 0.5
@ -266,7 +277,8 @@ collision_mask = 0
shape = SubResource( 2 )
[connection signal="button_down" from="Rows/Columns/RightSide/LevelInfo/Menu/ChapterSelect" to="." method="repopulate_chapters"]
[connection signal="button_down" from="Rows/Columns/RightSide/LevelInfo/Menu/LevelSelect" to="." method="repopulate_levels"]
[connection signal="pressed" from="Rows/Columns/RightSide/LevelInfo/Menu/ReloadButton" to="." method="reload_level"]
[connection signal="pressed" from="Rows/Columns/RightSide/LevelInfo/Menu/BackButton" to="." method="back"]
[connection signal="pressed" from="Rows/Columns/RightSide/LevelInfo/Menu/ReloadButton2" to="." method="reload_level"]
[connection signal="pressed" from="Rows/Columns/RightSide/LevelInfo/Menu/CardsButton" to="." method="toggle_cards"]
[connection signal="pressed" from="Rows/Columns/RightSide/LevelInfo/Menu/Tip!" to="." method="new_tip"]
[connection signal="pressed" from="Rows/Columns/RightSide/LevelInfo/Menu/NextLevelButton" to="." method="load_next_level"]