20 lines
678 B
GDScript
20 lines
678 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(day_count, floor_count, diagnoses_count, diagnoses_quota):
|
|
var day = Globals.colorize(str(day_count), "dark_orange")
|
|
var floor = Globals.colorize(str(floor_count), "dark_orange")
|
|
var diagnoses = Globals.colorize(str(diagnoses_count) + "/" + str(diagnoses_quota), "dark_orange")
|
|
|
|
text = "DAY: " + day + "\n\nFLOOR: " + floor + "\n\nACCURATE DIAGNOSES: " + diagnoses
|
|
|
|
|
|
func reset():
|
|
update(Globals.day_count, Globals.floor_count, Globals.accurate_diagnoses, Globals.diagnoses_quota)
|