20 lines
582 B
GDScript
20 lines
582 B
GDScript
extends RichTextLabel
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
#Updates Middle Screen Info
|
|
func update(floor_count, patient_count, patient_quota):
|
|
var floor = Globals.colorize(str(floor_count), "dark_orange")
|
|
var patients_seen = Globals.colorize(str(patient_count) + "/" + str(patient_quota), "dark_orange")
|
|
|
|
text = "FLOOR: " + floor + "\n\nPATIENTS SEEN: " + patients_seen
|
|
|
|
|
|
#Resets to initial state
|
|
func reset():
|
|
update(Globals.floor_count, Globals.patient_count, Globals.patient_quota)
|