summaryrefslogtreecommitdiffstats
path: root/screens/TimeSlot
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-08-26 18:16:13 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-08-26 18:16:13 -0400
commitc96db866eaa188ea73548a58716f3c0a46bc011c (patch)
tree694344242820533697fd36baa531c3f60daef17e /screens/TimeSlot
parentfebc05f628793d252066a173e8fce0826b2190fd (diff)
downloadPlanner-c96db866eaa188ea73548a58716f3c0a46bc011c.tar.gz
Planner-c96db866eaa188ea73548a58716f3c0a46bc011c.zip
tabs to spaces
Diffstat (limited to 'screens/TimeSlot')
-rw-r--r--screens/TimeSlot/Body.gd20
-rw-r--r--screens/TimeSlot/Header.gd4
-rw-r--r--screens/TimeSlot/TaskItem.gd2
3 files changed, 13 insertions, 13 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)
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])