diff options
Diffstat (limited to 'screens/TaskManager/TaskItem.gd')
-rw-r--r-- | screens/TaskManager/TaskItem.gd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/screens/TaskManager/TaskItem.gd b/screens/TaskManager/TaskItem.gd new file mode 100644 index 0000000..ce9dd75 --- /dev/null +++ b/screens/TaskManager/TaskItem.gd @@ -0,0 +1,11 @@ +extends MarginContainer + +var task_id + +func populate(data): + task_id = data.id + $"%Name".text = data.name + $"%Length".text = "%d min" % data.estimated_length + +func _on_Button_button_up(): + $"/root/Main".nav_screen("Task", Task, "get_by_id", [task_id]) |