diff options
Diffstat (limited to 'screens/Task/Body.gd')
-rw-r--r-- | screens/Task/Body.gd | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/screens/Task/Body.gd b/screens/Task/Body.gd index 05c9e9e..0831524 100644 --- a/screens/Task/Body.gd +++ b/screens/Task/Body.gd @@ -1,12 +1,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)
\ No newline at end of file + $"%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) |