summaryrefslogtreecommitdiffstats
path: root/screens
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
parentfebc05f628793d252066a173e8fce0826b2190fd (diff)
downloadPlanner-c96db866eaa188ea73548a58716f3c0a46bc011c.tar.gz
Planner-c96db866eaa188ea73548a58716f3c0a46bc011c.zip
tabs to spaces
Diffstat (limited to 'screens')
-rw-r--r--screens/Task/Body.gd18
-rw-r--r--screens/Task/Header.gd4
-rw-r--r--screens/TimeSlot/Body.gd20
-rw-r--r--screens/TimeSlot/Header.gd4
-rw-r--r--screens/TimeSlot/TaskItem.gd2
5 files changed, 24 insertions, 24 deletions
diff --git a/screens/Task/Body.gd b/screens/Task/Body.gd
index 05c9e9e..0831524 100644
--- a/screens/Task/Body.gd
+++ b/screens/Task/Body.gd
@@ -1,12 +1,12 @@
extends VBoxContainer
func populate(data):
- $"%Length".text = "%d min" % data.estimated_length
- $"%Description".text = data.description if data.description != null else ""
- var tasks = SubTask.get_by_task(data.id)
- var SubTaskItem = load("res://screens/Task/SubTaskItem.tscn")
- var task_list = $"%SubTaskList"
- for task in tasks:
- var item = SubTaskItem.instance()
- item.populate(task)
- task_list.add_child(item) \ No newline at end of file
+ $"%Length".text = "%d min" % data.estimated_length
+ $"%Description".text = data.description if data.description != null else ""
+ var tasks = SubTask.get_by_task(data.id)
+ var SubTaskItem = load("res://screens/Task/SubTaskItem.tscn")
+ var task_list = $"%SubTaskList"
+ for task in tasks:
+ var item = SubTaskItem.instance()
+ item.populate(task)
+ task_list.add_child(item)
diff --git a/screens/Task/Header.gd b/screens/Task/Header.gd
index 8f6c3f7..7653b6a 100644
--- a/screens/Task/Header.gd
+++ b/screens/Task/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/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])