summaryrefslogblamecommitdiffstats
path: root/screens/TaskManager/TaskItem.gd
blob: ce9dd75c33794d9bf1681859d347cfdff8b82e26 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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])