summaryrefslogtreecommitdiffstats
path: root/screens/Schedule/Body.gd
blob: 7760a596bb2ea59f6b6fceb66f897269e3ec1868 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
extends VBoxContainer

func populate(data):
    var TimeSlotItem = load("res://screens/Schedule/TimeSlotItem.tscn")
    var timeslot_list = $"%TimeSlotList"
    for timeslot in data:
        var item = TimeSlotItem.instance()
        item.populate(timeslot)
        timeslot_list.add_child(item)


func _on_ManageTasks_button_up():
    $"/root/Main".nav_screen("TaskManager", DataHelpers, "dummy_data", [[]])