summaryrefslogtreecommitdiffstats
path: root/screens/TimeSlot
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--screens/TimeSlot/Body.tscn37
-rw-r--r--screens/TimeSlot/Header.gd4
-rw-r--r--screens/TimeSlot/Header.tscn33
-rw-r--r--screens/TimeSlot/TaskItem.tscn53
4 files changed, 127 insertions, 0 deletions
diff --git a/screens/TimeSlot/Body.tscn b/screens/TimeSlot/Body.tscn
new file mode 100644
index 0000000..2e6460a
--- /dev/null
+++ b/screens/TimeSlot/Body.tscn
@@ -0,0 +1,37 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://fonts/DroidSans.ttf" type="DynamicFontData" id=1]
+[ext_resource path="res://screens/TimeSlot/TaskItem.tscn" type="PackedScene" id=2]
+
+[sub_resource type="DynamicFont" id=2]
+size = 100
+font_data = ExtResource( 1 )
+
+[node name="TimeSlotBody" type="VBoxContainer"]
+margin_left = 20.0
+margin_top = 20.0
+margin_right = 1046.0
+margin_bottom = 1664.0
+
+[node name="TimeRange" type="Label" parent="."]
+unique_name_in_owner = true
+margin_right = 1026.0
+margin_bottom = 117.0
+custom_fonts/font = SubResource( 2 )
+text = "12:30 AM - 1:00 AM"
+align = 1
+valign = 1
+
+[node name="ScrollContainer" type="ScrollContainer" parent="."]
+margin_top = 121.0
+margin_right = 1026.0
+margin_bottom = 1644.0
+size_flags_vertical = 3
+
+[node name="TaskList" type="VBoxContainer" parent="ScrollContainer"]
+unique_name_in_owner = true
+margin_right = 1026.0
+margin_bottom = 110.0
+size_flags_horizontal = 3
+
+[node name="TaskItem" parent="ScrollContainer/TaskList" instance=ExtResource( 2 )]
diff --git a/screens/TimeSlot/Header.gd b/screens/TimeSlot/Header.gd
new file mode 100644
index 0000000..009a9b4
--- /dev/null
+++ b/screens/TimeSlot/Header.gd
@@ -0,0 +1,4 @@
+extends HBoxContainer
+
+func _on_Back_button_up():
+ $"/root/Main".nav_screen("Task")
diff --git a/screens/TimeSlot/Header.tscn b/screens/TimeSlot/Header.tscn
new file mode 100644
index 0000000..2823e6a
--- /dev/null
+++ b/screens/TimeSlot/Header.tscn
@@ -0,0 +1,33 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://fonts/DroidSans.ttf" type="DynamicFontData" id=1]
+[ext_resource path="res://screens/TimeSlot/Header.gd" type="Script" id=2]
+
+[sub_resource type="DynamicFont" id=2]
+size = 100
+font_data = ExtResource( 1 )
+
+[node name="TimeslotHeader" type="HBoxContainer"]
+margin_left = 20.0
+margin_top = 20.0
+margin_right = 1046.0
+margin_bottom = 198.0
+script = ExtResource( 2 )
+
+[node name="Name" type="Label" parent="."]
+margin_top = 30.0
+margin_right = 799.0
+margin_bottom = 147.0
+size_flags_horizontal = 3
+custom_fonts/font = SubResource( 2 )
+text = "Chores"
+clip_text = true
+
+[node name="Back" type="Button" parent="."]
+margin_left = 803.0
+margin_right = 1026.0
+margin_bottom = 178.0
+custom_fonts/font = SubResource( 2 )
+text = "Back"
+
+[connection signal="button_up" from="Back" to="." method="_on_Back_button_up"]
diff --git a/screens/TimeSlot/TaskItem.tscn b/screens/TimeSlot/TaskItem.tscn
new file mode 100644
index 0000000..75ef95d
--- /dev/null
+++ b/screens/TimeSlot/TaskItem.tscn
@@ -0,0 +1,53 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://fonts/DroidSans.ttf" type="DynamicFontData" id=1]
+
+[sub_resource type="DynamicFont" id=1]
+size = 72
+font_data = ExtResource( 1 )
+
+[node name="TaskItem" type="MarginContainer"]
+margin_right = 1026.0
+margin_bottom = 110.0
+custom_constants/margin_top = 5
+custom_constants/margin_bottom = 5
+
+[node name="Button" type="Button" parent="."]
+margin_top = 5.0
+margin_right = 1026.0
+margin_bottom = 105.0
+rect_min_size = Vector2( 0, 100 )
+
+[node name="HBoxContainer" type="HBoxContainer" parent="Button"]
+margin_right = 1026.0
+margin_bottom = 100.0
+alignment = 2
+
+[node name="Name" type="Label" parent="Button/HBoxContainer"]
+margin_top = 8.0
+margin_right = 493.0
+margin_bottom = 92.0
+size_flags_horizontal = 3
+custom_fonts/font = SubResource( 1 )
+text = "Stretching"
+clip_text = true
+
+[node name="Length" type="Label" parent="Button/HBoxContainer"]
+margin_left = 497.0
+margin_top = 8.0
+margin_right = 722.0
+margin_bottom = 92.0
+custom_fonts/font = SubResource( 1 )
+text = "10 min"
+align = 2
+
+[node name="Frequency" type="Label" parent="Button/HBoxContainer"]
+margin_left = 726.0
+margin_top = 8.0
+margin_right = 1026.0
+margin_bottom = 92.0
+rect_min_size = Vector2( 300, 0 )
+custom_fonts/font = SubResource( 1 )
+text = "Daily"
+align = 2
+clip_text = true