From 4dc99b2d0ac8cb741d1cd968d46026fae70d031e Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sat, 20 Aug 2022 02:09:44 -0400 Subject: Add basic mockups of two screens and prototype navigation --- screens/Task/Body.tscn | 57 +++++++++++++++++++++++++++++++++++++++++++ screens/Task/Header.gd | 4 +++ screens/Task/Header.tscn | 33 +++++++++++++++++++++++++ screens/Task/SubtaskItem.tscn | 23 +++++++++++++++++ 4 files changed, 117 insertions(+) create mode 100644 screens/Task/Body.tscn create mode 100644 screens/Task/Header.gd create mode 100644 screens/Task/Header.tscn create mode 100644 screens/Task/SubtaskItem.tscn (limited to 'screens/Task') diff --git a/screens/Task/Body.tscn b/screens/Task/Body.tscn new file mode 100644 index 0000000..9185ad4 --- /dev/null +++ b/screens/Task/Body.tscn @@ -0,0 +1,57 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://fonts/DroidSans.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://screens/Task/SubtaskItem.tscn" type="PackedScene" id=2] + +[sub_resource type="DynamicFont" id=2] +size = 100 +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=3] +size = 50 +font_data = ExtResource( 1 ) + +[node name="TaskBody" type="VBoxContainer"] +margin_left = 20.0 +margin_top = 20.0 +margin_right = 1046.0 +margin_bottom = 1664.0 + +[node name="HBoxContainer" type="HBoxContainer" parent="."] +margin_right = 1026.0 +margin_bottom = 300.0 + +[node name="Length" type="Label" parent="HBoxContainer"] +margin_right = 511.0 +margin_bottom = 300.0 +rect_min_size = Vector2( 0, 300 ) +size_flags_horizontal = 3 +custom_fonts/font = SubResource( 2 ) +text = "10 min." +valign = 1 +clip_text = true + +[node name="Description" type="TextEdit" parent="HBoxContainer"] +margin_left = 515.0 +margin_right = 1026.0 +margin_bottom = 300.0 +size_flags_horizontal = 3 +custom_fonts/font = SubResource( 3 ) +text = "Do various stretches. +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." +readonly = true +wrap_enabled = true + +[node name="ScrollContainer" type="ScrollContainer" parent="."] +margin_top = 304.0 +margin_right = 1026.0 +margin_bottom = 1644.0 +size_flags_vertical = 3 + +[node name="SubtaskList" 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/SubtaskList" instance=ExtResource( 2 )] diff --git a/screens/Task/Header.gd b/screens/Task/Header.gd new file mode 100644 index 0000000..ed2fe98 --- /dev/null +++ b/screens/Task/Header.gd @@ -0,0 +1,4 @@ +extends HBoxContainer + +func _on_Back_button_up(): + $"/root/Main".nav_screen("TimeSlot") diff --git a/screens/Task/Header.tscn b/screens/Task/Header.tscn new file mode 100644 index 0000000..89e488c --- /dev/null +++ b/screens/Task/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/Task/Header.gd" type="Script" id=2] + +[sub_resource type="DynamicFont" id=2] +size = 100 +font_data = ExtResource( 1 ) + +[node name="TaskHeader" 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 = "Stretching" +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/Task/SubtaskItem.tscn b/screens/Task/SubtaskItem.tscn new file mode 100644 index 0000000..48fc590 --- /dev/null +++ b/screens/Task/SubtaskItem.tscn @@ -0,0 +1,23 @@ +[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 ) +custom_fonts/font = SubResource( 1 ) +text = "Hip Flexor" +clip_text = true +align = 0 -- cgit v1.2.3