mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Added Clear board button and Confirm Placement button
This commit is contained in:
@@ -43,10 +43,10 @@ anchor_left = 0.912
|
||||
anchor_top = 0.932
|
||||
anchor_right = 0.912
|
||||
anchor_bottom = 0.932
|
||||
margin_left = 0.319946
|
||||
margin_top = 0.47998
|
||||
margin_right = 53.3199
|
||||
margin_bottom = 20.48
|
||||
margin_left = -3.68005
|
||||
margin_top = -4.52002
|
||||
margin_right = 49.3199
|
||||
margin_bottom = 15.48
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
@@ -97,5 +97,41 @@ collision_layer = 3
|
||||
contacts_reported = 1
|
||||
contact_monitor = true
|
||||
|
||||
[node name="Confirm Placement" type="Button" parent="."]
|
||||
margin_left = 409.0
|
||||
margin_top = 331.0
|
||||
margin_right = 543.0
|
||||
margin_bottom = 351.0
|
||||
text = "Confirm Placement"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Clear" type="Button" parent="."]
|
||||
margin_left = 353.0
|
||||
margin_top = 331.0
|
||||
margin_right = 406.0
|
||||
margin_bottom = 351.0
|
||||
text = "Clear"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="AcceptDialog" type="AcceptDialog" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -179.0
|
||||
margin_top = -29.0
|
||||
margin_right = 179.0
|
||||
margin_bottom = 29.0
|
||||
dialog_text = "You can't confirm placement until all ships are placed"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Forfeit" to="." method="_on_Forfeit_pressed"]
|
||||
[connection signal="about_to_show" from="ConfirmationDialog" to="." method="_on_ConfirmationDialog_about_to_show"]
|
||||
[connection signal="pressed" from="Confirm Placement" to="2Ship" method="_on_Confirm_Placement_pressed"]
|
||||
[connection signal="pressed" from="Clear" to="2Ship" method="_on_Clear_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user