From 00fb26200b230379092d7b4d864715977cf86482 Mon Sep 17 00:00:00 2001 From: aidan-j-rhoden Date: Sun, 1 Jan 2023 17:12:54 -0600 Subject: [PATCH] Started work on end game stats --- scenes/lobby.tscn | 8 +++++++- scripts/lobby.gd | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scenes/lobby.tscn b/scenes/lobby.tscn index 071a0e9..011951f 100644 --- a/scenes/lobby.tscn +++ b/scenes/lobby.tscn @@ -221,7 +221,6 @@ size_flags_horizontal = 2 size_flags_vertical = 2 [node name="info_pop" type="AcceptDialog" parent="."] -visible = true anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 @@ -251,6 +250,13 @@ R: Reload weapon Right click: Hold/Toggle aim Left click: Fire" +[node name="game_stats" type="AcceptDialog" parent="."] +margin_left = 587.108 +margin_top = 324.858 +margin_right = 708.108 +margin_bottom = 382.858 +window_title = "Game Stats" + [connection signal="pressed" from="connect/v_box_container/h_box_container2/host" to="." method="_on_host_pressed"] [connection signal="pressed" from="connect/v_box_container/h_box_container4/join" to="." method="_on_join_pressed"] [connection signal="text_changed" from="settings/v_box_container/round_time" to="." method="_on_round_time_text_changed"] diff --git a/scripts/lobby.gd b/scripts/lobby.gd index cc4050d..c5f30cc 100644 --- a/scripts/lobby.gd +++ b/scripts/lobby.gd @@ -73,6 +73,7 @@ func _on_game_ended(): get_node("connect").show() get_node("players").hide() get_node("connect/v_box_container/h_box_container2/host").disabled = false + $game_stats.visible = true func _on_game_error(errtxt):