summaryrefslogtreecommitdiffstats
path: root/screens/TaskManager/TaskCategory.gd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--screens/TaskManager/TaskCategory.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/screens/TaskManager/TaskCategory.gd b/screens/TaskManager/TaskCategory.gd
new file mode 100644
index 0000000..ef97c3b
--- /dev/null
+++ b/screens/TaskManager/TaskCategory.gd
@@ -0,0 +1,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) \ No newline at end of file