From e4322bde34c2c8c864e3fd40bd254894d18fb15f Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sat, 27 Aug 2022 00:39:58 -0400 Subject: Add Main Schedule Screen Prototype --- screens/Schedule/Body.gd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 screens/Schedule/Body.gd (limited to 'screens/Schedule/Body.gd') diff --git a/screens/Schedule/Body.gd b/screens/Schedule/Body.gd new file mode 100644 index 0000000..7760a59 --- /dev/null +++ b/screens/Schedule/Body.gd @@ -0,0 +1,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", [[]]) -- cgit v1.2.3