diff options
Diffstat (limited to 'screens/TimeSlot/Body.gd')
-rw-r--r-- | screens/TimeSlot/Body.gd | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/screens/TimeSlot/Body.gd b/screens/TimeSlot/Body.gd index aa1f352..5bca112 100644 --- a/screens/TimeSlot/Body.gd +++ b/screens/TimeSlot/Body.gd @@ -1,13 +1,13 @@ extends VBoxContainer func populate(data): - var start_time = DataHelpers.timeofday(data.start_time) - var end_time = DataHelpers.timeofday(data.end_time) - $"%TimeRange".text = "%s - %s" % [start_time, end_time] - var tasks = Task.get_by_timeslot(data.id) - var TaskItem = load("res://screens/TimeSlot/TaskItem.tscn") - var task_list = $"%TaskList" - for task in tasks: - var item = TaskItem.instance() - item.populate(task) - task_list.add_child(item) + var start_time = DataHelpers.timeofday(data.start_time) + var end_time = DataHelpers.timeofday(data.end_time) + $"%TimeRange".text = "%s - %s" % [start_time, end_time] + var tasks = Task.get_by_timeslot(data.id) + var TaskItem = load("res://screens/TimeSlot/TaskItem.tscn") + var task_list = $"%TaskList" + for task in tasks: + var item = TaskItem.instance() + item.populate(task) + task_list.add_child(item) |