extends Node const LAB_DIR = "res://labs/" func _ready() -> void: for lab_file in ResourceLoader.list_directory(LAB_DIR): if lab_file.ends_with("/"): continue var lab: Labwork = load(LAB_DIR + lab_file) var button: Button = Button.new() button.pressed.connect(LabRuntime.start_lab.bind(lab)) add_child(button) button.text = lab.lab_name