summaryrefslogtreecommitdiffstats
path: root/screens/Schedule/TimeSlotItem.gd
diff options
context:
space:
mode:
Diffstat (limited to 'screens/Schedule/TimeSlotItem.gd')
-rw-r--r--screens/Schedule/TimeSlotItem.gd12
1 files changed, 12 insertions, 0 deletions
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])