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:
Binary file not shown.
|
Before Width: | Height: | Size: 9.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB |
@@ -19,6 +19,7 @@ __meta__ = {
|
||||
[node name="new_game" type="Button" parent="."]
|
||||
margin_right = 358.0
|
||||
margin_bottom = 152.0
|
||||
rect_min_size = Vector2( 0, 150 )
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "NEW_GAME"
|
||||
|
||||
@@ -19,7 +19,7 @@ func _ready():
|
||||
]
|
||||
)
|
||||
return false
|
||||
|
||||
|
||||
|
||||
func _on_continue_pressed():
|
||||
pass
|
||||
@@ -34,13 +34,13 @@ func _on_new_game_pressed():
|
||||
|
||||
|
||||
func _on_load_game_pressed():
|
||||
$Panel/main.hide()
|
||||
$Panel/CenterContainer/main.hide()
|
||||
$Panel/load_game.refresh_savegames()
|
||||
$Panel/load_game.show()
|
||||
|
||||
|
||||
func _on_options_pressed():
|
||||
$Panel/main.hide()
|
||||
$Panel/CenterContainer/main.hide()
|
||||
$Panel/options.show()
|
||||
|
||||
|
||||
@@ -53,10 +53,10 @@ func _on_quit_pressed():
|
||||
|
||||
func _on_options_back_button_pressed():
|
||||
$Panel/options.hide()
|
||||
$Panel/main.show()
|
||||
$Panel/CenterContainer/main.show()
|
||||
|
||||
|
||||
func _on_load_game_back_button_pressed():
|
||||
$Panel/load_game.hide()
|
||||
$Panel/main.show()
|
||||
$Panel/CenterContainer/main.show()
|
||||
|
||||
|
||||
@@ -22,19 +22,46 @@ __meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -308.0
|
||||
margin_top = 52.0
|
||||
margin_right = 308.0
|
||||
margin_bottom = 288.0
|
||||
[node name="CenterContainer" type="CenterContainer" parent="Panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="main" type="VBoxContainer" parent="Panel/CenterContainer"]
|
||||
margin_left = 332.0
|
||||
margin_top = 150.0
|
||||
margin_right = 948.0
|
||||
margin_bottom = 749.0
|
||||
custom_constants/separation = 100
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel/CenterContainer/main"]
|
||||
margin_right = 616.0
|
||||
margin_bottom = 236.0
|
||||
texture = ExtResource( 3 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="main" parent="Panel" instance=ExtResource( 2 )]
|
||||
[node name="buttons" parent="Panel/CenterContainer/main" instance=ExtResource( 2 )]
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 0.0
|
||||
margin_top = 336.0
|
||||
margin_right = 616.0
|
||||
margin_bottom = 599.0
|
||||
|
||||
[node name="new_game" parent="Panel/CenterContainer/main/buttons" index="0"]
|
||||
margin_right = 616.0
|
||||
|
||||
[node name="load_game" parent="Panel/CenterContainer/main/buttons" index="1"]
|
||||
margin_right = 616.0
|
||||
|
||||
[node name="options" parent="Panel/CenterContainer/main/buttons" index="2"]
|
||||
margin_right = 616.0
|
||||
|
||||
[node name="quit" parent="Panel/CenterContainer/main/buttons" index="3"]
|
||||
margin_right = 616.0
|
||||
|
||||
[node name="options" parent="Panel" instance=ExtResource( 4 )]
|
||||
visible = false
|
||||
@@ -42,11 +69,11 @@ visible = false
|
||||
[node name="load_game" parent="Panel" instance=ExtResource( 5 )]
|
||||
visible = false
|
||||
|
||||
[connection signal="pressed" from="Panel/main/new_game" to="." method="_on_new_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/main/load_game" to="." method="_on_load_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/main/options" to="." method="_on_options_pressed"]
|
||||
[connection signal="pressed" from="Panel/main/quit" to="." method="_on_quit_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/main/buttons/new_game" to="." method="_on_new_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/main/buttons/load_game" to="." method="_on_load_game_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/main/buttons/options" to="." method="_on_options_pressed"]
|
||||
[connection signal="pressed" from="Panel/CenterContainer/main/buttons/quit" to="." method="_on_quit_pressed"]
|
||||
[connection signal="back_button_pressed" from="Panel/options" to="." method="_on_options_back_button_pressed"]
|
||||
[connection signal="back_button_pressed" from="Panel/load_game" to="." method="_on_load_game_back_button_pressed"]
|
||||
|
||||
[editable path="Panel/main"]
|
||||
[editable path="Panel/CenterContainer/main/buttons"]
|
||||
|
||||
Reference in New Issue
Block a user