This commit is contained in:
rendo 2026-02-18 11:02:22 +05:00
commit c7788ed121
8 changed files with 100 additions and 32 deletions

14
ui/lab_menu.gd Normal file
View file

@ -0,0 +1,14 @@
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