blob: 083152473afe13d70c4d2280c93affb2fec7f1b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
extends VBoxContainer
func populate(data):
$"%Length".text = "%d min" % data.estimated_length
$"%Description".text = data.description if data.description != null else ""
var tasks = SubTask.get_by_task(data.id)
var SubTaskItem = load("res://screens/Task/SubTaskItem.tscn")
var task_list = $"%SubTaskList"
for task in tasks:
var item = SubTaskItem.instance()
item.populate(task)
task_list.add_child(item)
|