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

func populate(_data):
    var TaskCategory = load("res://screens/TaskManager/TaskCategory.tscn")
    var tabs = $"%Tabs"
    for i in range(DataHelpers.Frequency.SIZE):
        var cat = TaskCategory.instance()
        cat.name = DataHelpers.frequency(i).replace("\n", " ")
        cat.populate(i)
        tabs.add_child(cat)