From c96db866eaa188ea73548a58716f3c0a46bc011c Mon Sep 17 00:00:00 2001 From: dusoleil Date: Fri, 26 Aug 2022 18:16:13 -0400 Subject: tabs to spaces --- screens/TimeSlot/Body.gd | 20 ++++++++++---------- screens/TimeSlot/Header.gd | 4 ++-- screens/TimeSlot/TaskItem.gd | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'screens/TimeSlot') 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) diff --git a/screens/TimeSlot/Header.gd b/screens/TimeSlot/Header.gd index 8f6c3f7..7653b6a 100644 --- a/screens/TimeSlot/Header.gd +++ b/screens/TimeSlot/Header.gd @@ -1,7 +1,7 @@ extends HBoxContainer func populate(data): - $"%Name".text = data.name + $"%Name".text = data.name func _on_Back_button_up(): - $"/root/Main".nav_back() + $"/root/Main".nav_back() diff --git a/screens/TimeSlot/TaskItem.gd b/screens/TimeSlot/TaskItem.gd index c2ab487..aa7c9bd 100644 --- a/screens/TimeSlot/TaskItem.gd +++ b/screens/TimeSlot/TaskItem.gd @@ -14,4 +14,4 @@ func populate(data): func _on_Button_button_up(): - $"/root/Main".nav_screen("Task", Task, "get_by_id", [task_id]) + $"/root/Main".nav_screen("Task", Task, "get_by_id", [task_id]) -- cgit v1.2.3