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

Added Confirmation Dialog for Forfeit

This commit is contained in:
tommy-l-ngo
2021-11-13 23:32:19 -06:00
parent bf58a2b29e
commit 63dec75688
3 changed files with 22 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ func _ready():
var setup = Setup.instance()
setup.connect("game_ready", self, "game_setup")
add_child(setup)
get_node("ConfirmationDialog").get_ok().text = "Yes"
get_node("ConfirmationDialog").get_cancel().text = "No"
# TODO: Move Setup into the Player.
func game_setup(_ships):