Files
imnotsick/Scenes/screening_desk/middle_screen.gd
T
2026-06-11 21:33:17 +02:00

20 lines
746 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, diagnoses_count, diagnoses_quota, misdiagnoses_allowed):
var floor = Globals.colorize(str(floor_count), "dark_orange")
var diagnoses = Globals.colorize(str(diagnoses_count) + "/" + str(diagnoses_quota), "dark_orange")
var misdiagnoses = Globals.colorize(str(misdiagnoses_allowed), "dark_orange")
text = "FLOOR: " + floor + "\n\nACCURATE DIAGNOSES: " + diagnoses + "\n\nMISDIAGNOSES ALLOWED: " + misdiagnoses
func reset():
update(Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota, Globals.misdiagnoses_allowed)