Issue 336 (#380)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de> Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
@@ -11,12 +11,12 @@ func _on_continue_pressed():
|
||||
|
||||
|
||||
func _on_save_game_pressed():
|
||||
$Panel/VBoxContainer.hide()
|
||||
$Panel/CenterContainer/VBoxContainer.hide()
|
||||
$save_game.show()
|
||||
|
||||
|
||||
func _on_load_game_pressed():
|
||||
$Panel/VBoxContainer.hide()
|
||||
$Panel/CenterContainer/VBoxContainer.hide()
|
||||
$load_game.refresh_savegames()
|
||||
$load_game.show()
|
||||
|
||||
@@ -26,10 +26,10 @@ func _on_quit_pressed():
|
||||
|
||||
|
||||
func _on_save_game_back_button_pressed():
|
||||
$Panel/VBoxContainer.show()
|
||||
$Panel/CenterContainer/VBoxContainer.show()
|
||||
$save_game.hide()
|
||||
|
||||
|
||||
func _on_load_game_back_button_pressed():
|
||||
$Panel/VBoxContainer.show()
|
||||
$Panel/CenterContainer/VBoxContainer.show()
|
||||
$load_game.hide()
|
||||
|
||||
@@ -21,70 +21,77 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -308.0
|
||||
margin_right = 308.0
|
||||
[node name="CenterContainer" type="CenterContainer" parent="Panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/CenterContainer"]
|
||||
margin_left = 332.0
|
||||
margin_top = 151.0
|
||||
margin_right = 948.0
|
||||
margin_bottom = 748.0
|
||||
custom_constants/separation = 100
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel/CenterContainer/VBoxContainer"]
|
||||
margin_right = 616.0
|
||||
margin_bottom = 236.0
|
||||
texture = ExtResource( 3 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -127.8
|
||||
margin_top = -80.62
|
||||
margin_right = 127.8
|
||||
margin_bottom = 80.62
|
||||
[node name="menuitems" type="VBoxContainer" parent="Panel/CenterContainer/VBoxContainer"]
|
||||
margin_top = 336.0
|
||||
margin_right = 616.0
|
||||
margin_bottom = 597.0
|
||||
custom_constants/separation = 10
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="continue" type="Button" parent="Panel/VBoxContainer"]
|
||||
margin_right = 255.0
|
||||
margin_bottom = 32.0
|
||||
[node name="continue" type="Button" parent="Panel/CenterContainer/VBoxContainer/menuitems"]
|
||||
margin_right = 616.0
|
||||
margin_bottom = 150.0
|
||||
rect_min_size = Vector2( 0, 150 )
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Continue"
|
||||
text = "CONTINUE_GAME"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="save_game" type="Button" parent="Panel/VBoxContainer"]
|
||||
margin_top = 42.0
|
||||
margin_right = 255.0
|
||||
margin_bottom = 75.0
|
||||
[node name="save_game" type="Button" parent="Panel/CenterContainer/VBoxContainer/menuitems"]
|
||||
margin_top = 160.0
|
||||
margin_right = 616.0
|
||||
margin_bottom = 187.0
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Save game"
|
||||
text = "SAVE_GAME"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="load_game" type="Button" parent="Panel/VBoxContainer"]
|
||||
margin_top = 85.0
|
||||
margin_right = 255.0
|
||||
margin_bottom = 118.0
|
||||
[node name="load_game" type="Button" parent="Panel/CenterContainer/VBoxContainer/menuitems"]
|
||||
margin_top = 197.0
|
||||
margin_right = 616.0
|
||||
margin_bottom = 224.0
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Load game"
|
||||
text = "LOAD_GAME"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="quit" type="Button" parent="Panel/VBoxContainer"]
|
||||
margin_top = 128.0
|
||||
margin_right = 255.0
|
||||
margin_bottom = 161.0
|
||||
[node name="quit" type="Button" parent="Panel/CenterContainer/VBoxContainer/menuitems"]
|
||||
margin_top = 234.0
|
||||
margin_right = 616.0
|
||||
margin_bottom = 261.0
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "Quit"
|
||||
text = "QUIT"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
@@ -95,9 +102,9 @@ visible = false
|
||||
[node name="load_game" parent="." instance=ExtResource( 5 )]
|
||||
visible = false
|
||||
|
||||
[connection signal="pressed" from="Panel/VBoxContainer/continue" to="." method="_on_continue_pressed"]
|
||||
[connection signal="pressed" from="Panel/VBoxContainer/save_game" to="." method="_on_save_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/VBoxContainer/load_game" to="." method="_on_load_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/VBoxContainer/quit" to="." method="_on_quit_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/VBoxContainer/menuitems/continue" to="." method="_on_continue_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/VBoxContainer/menuitems/save_game" to="." method="_on_save_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/VBoxContainer/menuitems/load_game" to="." method="_on_load_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/VBoxContainer/menuitems/quit" to="." method="_on_quit_pressed"]
|
||||
[connection signal="back_button_pressed" from="save_game" to="." method="_on_save_game_back_button_pressed"]
|
||||
[connection signal="back_button_pressed" from="load_game" to="." method="_on_load_game_back_button_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user