···11+extends Control
22+33+#region Variables
44+@onready var sick_people: ProgressBar = %SickPeople
55+@onready var cured_people: ProgressBar = %CuredPeople
66+@onready var money_counter: Label = %MoneyCounter
77+88+@onready var doctor_counter: Label = %DoctorCounter
99+@onready var priest_counter: Label = %PriestCounter
1010+1111+@onready var dialogue_container: Control = %DialogueContainer # Will contain one dialog at a time
1212+#endregion
1313+1414+1515+func _ready() -> void:
1616+ # Access and set the Global variables to the UI metrics
1717+ sick_people.max_value = Global.population_total
1818+ sick_people.value = Global.people_sick + 15
1919+2020+ cured_people.max_value = 20 # Change to cured people to win
2121+ cured_people.value = Global.people_cured
2222+2323+ money_counter.text = str(Global.current_money)
2424+2525+ doctor_counter.text = str(Global.available_doctors)
2626+ priest_counter.text = str(Global.available_priests)