From 9626e509f9c4f8fb35982127c0c6d7c184257126 Mon Sep 17 00:00:00 2001 From: unfa Date: Sat, 11 Sep 2021 22:31:31 +0200 Subject: [PATCH] Fixed a silly scoretab bug --- Game/Assets/HUD/HUD.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Game/Assets/HUD/HUD.gd b/Game/Assets/HUD/HUD.gd index 30d3f37..56157ea 100644 --- a/Game/Assets/HUD/HUD.gd +++ b/Game/Assets/HUD/HUD.gd @@ -11,6 +11,8 @@ func _ready(): pass # Replace with function body. func update_score_table(): + $ScoreTable/VBoxContainer/ScoreTab.text = '' + var scores = [] for i in main.player_list.players.keys(): @@ -27,9 +29,7 @@ func update_score_table(): func score_table(show := true): if show: - $ScoreTable/VBoxContainer/ScoreTab.text = '' update_score_table() - $ScoreTable.show() else: $ScoreTable.hide()