Fixed a silly scoretab bug

remotes/1705377932733043820/tmp_refs/heads/unbroken
unfa 2021-09-11 22:31:31 +02:00
parent 7be3893dd5
commit 9626e509f9
1 changed files with 2 additions and 2 deletions

View File

@ -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()