summaryrefslogtreecommitdiffstats
path: root/screens/TaskManager/TaskCategory.gd
blob: b498b2a25aa5e9a96de4fc0d5663c2af80498060 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
extends ScrollContainer

func populate(data):
    var tasks = Task.get_by_frequency(data)
    var TaskItem = load("res://screens/TaskManager/TaskItem.tscn")
    var task_list = $"%TaskList"
    for task in tasks:
        var item = TaskItem.instance()
        item.populate(task)
        task_list.add_child(item)