diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-08-26 19:37:29 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-08-26 19:37:29 -0400 |
commit | 5756a8f8ed23f0af88b9a351fbbde7417ac82c2f (patch) | |
tree | 483d564f7868a74276a930784f18b3271d6abbcc /screens/TaskManager/TaskCategory.gd | |
parent | c96db866eaa188ea73548a58716f3c0a46bc011c (diff) | |
download | Planner-5756a8f8ed23f0af88b9a351fbbde7417ac82c2f.tar.gz Planner-5756a8f8ed23f0af88b9a351fbbde7417ac82c2f.zip |
Add Prototype Task Manager Screen
Diffstat (limited to 'screens/TaskManager/TaskCategory.gd')
-rw-r--r-- | screens/TaskManager/TaskCategory.gd | 10 |
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 |