forked from unfa/liblast
Fixed a silly scoretab bug
parent
7be3893dd5
commit
9626e509f9
|
@ -11,6 +11,8 @@ func _ready():
|
||||||
pass # Replace with function body.
|
pass # Replace with function body.
|
||||||
|
|
||||||
func update_score_table():
|
func update_score_table():
|
||||||
|
$ScoreTable/VBoxContainer/ScoreTab.text = ''
|
||||||
|
|
||||||
var scores = []
|
var scores = []
|
||||||
|
|
||||||
for i in main.player_list.players.keys():
|
for i in main.player_list.players.keys():
|
||||||
|
@ -27,9 +29,7 @@ func update_score_table():
|
||||||
func score_table(show := true):
|
func score_table(show := true):
|
||||||
|
|
||||||
if show:
|
if show:
|
||||||
$ScoreTable/VBoxContainer/ScoreTab.text = ''
|
|
||||||
update_score_table()
|
update_score_table()
|
||||||
|
|
||||||
$ScoreTable.show()
|
$ScoreTable.show()
|
||||||
else:
|
else:
|
||||||
$ScoreTable.hide()
|
$ScoreTable.hide()
|
||||||
|
|
Loading…
Reference in New Issue