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/TimeSlotItem.gd | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 screens/Schedule/TimeSlotItem.gd (limited to 'screens/Schedule/TimeSlotItem.gd') diff --git a/screens/Schedule/TimeSlotItem.gd b/screens/Schedule/TimeSlotItem.gd new file mode 100644 index 0000000..d912284 --- /dev/null +++ b/screens/Schedule/TimeSlotItem.gd @@ -0,0 +1,12 @@ +extends MarginContainer + +var timeslot_id + +func populate(data): + timeslot_id = data.id + $"%Time".text = "%s ... " % DataHelpers.timeofday(data.start_time) + $"%Name".text = data.name + + +func _on_Button_button_up(): + $"/root/Main".nav_screen("TimeSlot", TimeSlot, "get_by_id", [timeslot_id]) -- cgit v1.2.3