1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

Ship Battle: Draw the rest of the freaking owl

This commit is contained in:
2021-11-24 12:17:07 -06:00
parent 3f4b42821b
commit af9b18243e
14 changed files with 304 additions and 211 deletions

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://script/game/Gameplay/Board.gd" type="Script" id=1]
[ext_resource path="res://assets/game/board_dark.png" type="Texture" id=2]
[ext_resource path="res://assets/game/board_blue.png" type="Texture" id=2]
[node name="Board" type="Node2D"]
position = Vector2( 36, 36 )

View File

@@ -29,7 +29,7 @@ margin_right = 88.0
margin_bottom = 20.0
text = "Forfeit"
[node name="ConfirmationDialog" type="ConfirmationDialog" parent="."]
[node name="Forfeit Confirmation" type="ConfirmationDialog" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
@@ -54,6 +54,13 @@ margin_right = 43.4668
margin_bottom = 26.1478
text = "Win"
[node name="Connection Error" type="AcceptDialog" parent="."]
margin_right = 230.0
margin_bottom = 58.0
window_title = "Connection Error"
dialog_text = "Host disconnected unexpectedly."
[connection signal="pressed" from="Buttons/Forfeit" to="." method="_on_Forfeit_pressed"]
[connection signal="confirmed" from="ConfirmationDialog" to="." method="_on_ConfirmationDialog_confirmed"]
[connection signal="confirmed" from="Forfeit Confirmation" to="." method="_on_Forfeit_Confirmation_confirmed"]
[connection signal="button_down" from="Button" to="." method="_on_Button_button_down"]
[connection signal="confirmed" from="Connection Error" to="." method="_on_Connection_Error_confirmed"]

View File

@@ -10,25 +10,12 @@ font_data = ExtResource( 2 )
[node name="Victory" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
margin_left = 118.32
margin_top = 44.5109
margin_right = 260.32
margin_bottom = 84.5109
size_flags_vertical = 0
custom_fonts/font = SubResource( 1 )
text = "Victory"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="exit_to_main" type="Button" parent="."]
margin_left = 541.0
margin_top = 327.85
@@ -47,6 +34,20 @@ margin_right = 63.2202
margin_bottom = 357.41
text = "Restart"
[node name="Victory" type="Label" parent="."]
margin_left = 380.0
margin_top = 44.5109
margin_right = 260.32
margin_bottom = 84.5109
size_flags_vertical = 0
custom_fonts/font = SubResource( 1 )
text = "Victory"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="button_down" from="exit_to_main" to="." method="_on_exit_to_main_button_down"]
[connection signal="pressed" from="exit_to_main" to="." method="_on_Button_pressed"]
[connection signal="button_down" from="Button2" to="." method="_on_restart_button_down"]

View File

@@ -93,9 +93,19 @@ text = "Connect to Game"
[node name="Connected Options" type="VBoxContainer" parent="Lobby Options"]
visible = false
margin_top = 84.0
margin_top = 36.0
margin_right = 123.0
margin_bottom = 104.0
margin_bottom = 56.0
[node name="Host Options" type="VBoxContainer" parent="Lobby Options/Connected Options"]
visible = false
margin_right = 123.0
margin_bottom = 20.0
[node name="Start Game" type="Button" parent="Lobby Options/Connected Options/Host Options"]
margin_right = 123.0
margin_bottom = 20.0
text = "Start Game"
[node name="Disconnect Button" type="Button" parent="Lobby Options/Connected Options"]
margin_right = 123.0
@@ -162,6 +172,7 @@ text = "127.0.0.1"
[connection signal="pressed" from="Lobby Options/Host or Connect/Host Button" to="." method="_on_Host_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Host or Connect/Connect Button" to="." method="_on_Connect_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Connected Options/Host Options/Start Game" to="." method="_on_Start_Game_pressed"]
[connection signal="pressed" from="Lobby Options/Connected Options/Disconnect Button" to="." method="_on_Disconnect_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Change Name Button" to="." method="_on_Change_Name_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Exit Lobby Button" to="." method="_on_Exit_Lobby_pressed"]