Add quota dots to screen and color-code people count
- And try to remove survivors after doors close with queue_free - And move panel?? Still not right.
This commit is contained in:
parent
0cc7611515
commit
b92388cfe0
7 changed files with 43 additions and 5 deletions
|
|
@ -29,7 +29,10 @@ func update_saved(count: int):
|
|||
$StatsColumn/SavedLabel.text = "SAVED: " + str(count)
|
||||
|
||||
func update_people(count: int, threshold: int):
|
||||
$StatsColumn/PeopleLabel.text = "PEOPLE: " + str(count) + "/" + str(threshold)
|
||||
var label = $StatsColumn/PeopleLabel
|
||||
label.text = "PEOPLE: " + str(count) + "/" + str(threshold)
|
||||
var color = Color(0.4, 1.0, 0.4) if count >= threshold else Color(1.0, 0.4, 0.4)
|
||||
label.add_theme_color_override("font_color", color)
|
||||
|
||||
func update_score(new_score: int):
|
||||
$StatsColumn/ScoreLabel.text = "SCORE: " + str(new_score)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue