1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-14 21:15:58 +00:00

Fixed Dialog Box that pops up for Confirm Placement

This commit is contained in:
tommy-l-ngo 2021-11-12 03:44:52 -06:00
parent 9a3061c16e
commit a47cb991f2
2 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,7 @@ __meta__ = {
}
[node name="AcceptDialog" type="AcceptDialog" parent="."]
visible = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5

View File

@ -23,6 +23,8 @@ func _on_Confirm_Placement_pressed():
if get_node(ship).validate_placement():
valid = false
print ("Placement: ", valid)
if valid == false:
get_node("AcceptDialog").popup()
return valid # Replace with function body.