mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 05:25:57 +00:00
Fixed Dialog Box that pops up for Confirm Placement
This commit is contained in:
parent
9a3061c16e
commit
a47cb991f2
@ -118,6 +118,7 @@ __meta__ = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[node name="AcceptDialog" type="AcceptDialog" parent="."]
|
[node name="AcceptDialog" type="AcceptDialog" parent="."]
|
||||||
|
visible = true
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
|
@ -23,6 +23,8 @@ func _on_Confirm_Placement_pressed():
|
|||||||
if get_node(ship).validate_placement():
|
if get_node(ship).validate_placement():
|
||||||
valid = false
|
valid = false
|
||||||
print ("Placement: ", valid)
|
print ("Placement: ", valid)
|
||||||
|
if valid == false:
|
||||||
|
get_node("AcceptDialog").popup()
|
||||||
return valid # Replace with function body.
|
return valid # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user