aboutsummaryrefslogtreecommitdiff
path: root/date_picker/date_picker.tscn
diff options
context:
space:
mode:
authordam <dam@gudinoff>2021-12-02 22:19:02 +0000
committerdam <dam@gudinoff>2021-12-02 22:19:02 +0000
commit7d515712404db480b6ba6eb45576ecc74988acd3 (patch)
tree0da9c6f9e024d188da3e6f903ac0710d8d7921de /date_picker/date_picker.tscn
parent6bd6e27851f7beda9c279ddcd9b5c816569e2614 (diff)
downloadsurgery-log-7d515712404db480b6ba6eb45576ecc74988acd3.tar.zst
surgery-log-7d515712404db480b6ba6eb45576ecc74988acd3.zip
Implement date picker prototype.
Diffstat (limited to 'date_picker/date_picker.tscn')
-rw-r--r--date_picker/date_picker.tscn147
1 files changed, 147 insertions, 0 deletions
diff --git a/date_picker/date_picker.tscn b/date_picker/date_picker.tscn
new file mode 100644
index 0000000..88f98d8
--- /dev/null
+++ b/date_picker/date_picker.tscn
@@ -0,0 +1,147 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://date_picker/scroll_picker.gd" type="Script" id=1]
+
+[node name="date_picker" type="HBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+mouse_filter = 2
+alignment = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="day_scroll" type="Control" parent="."]
+margin_left = 5.0
+margin_right = 239.0
+margin_bottom = 1280.0
+rect_min_size = Vector2( 234, 0 )
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="label" type="Label" parent="day_scroll"]
+anchor_right = 1.0
+text = "day"
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value_previous" type="Label" parent="day_scroll"]
+anchor_right = 1.0
+margin_bottom = 80.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value" type="Label" parent="day_scroll"]
+anchor_right = 1.0
+margin_top = 80.0
+margin_bottom = 160.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value_next" type="Label" parent="day_scroll"]
+anchor_right = 1.0
+margin_top = 160.0
+margin_bottom = 240.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="month_scroll" type="Control" parent="."]
+margin_left = 243.0
+margin_right = 477.0
+margin_bottom = 1280.0
+rect_min_size = Vector2( 234, 0 )
+script = ExtResource( 1 )
+
+[node name="label" type="Label" parent="month_scroll"]
+anchor_right = 1.0
+text = "month"
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value_previous" type="Label" parent="month_scroll"]
+anchor_right = 1.0
+margin_bottom = 80.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value" type="Label" parent="month_scroll"]
+anchor_right = 1.0
+margin_top = 80.0
+margin_bottom = 160.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value_next" type="Label" parent="month_scroll"]
+anchor_right = 1.0
+margin_top = 160.0
+margin_bottom = 240.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="year_scroll" type="Control" parent="."]
+margin_left = 481.0
+margin_right = 715.0
+margin_bottom = 1280.0
+rect_min_size = Vector2( 234, 0 )
+script = ExtResource( 1 )
+
+[node name="label" type="Label" parent="year_scroll"]
+anchor_right = 1.0
+text = "year"
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value_previous" type="Label" parent="year_scroll"]
+anchor_right = 1.0
+margin_bottom = 80.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value" type="Label" parent="year_scroll"]
+anchor_right = 1.0
+margin_top = 80.0
+margin_bottom = 160.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="value_next" type="Label" parent="year_scroll"]
+anchor_right = 1.0
+margin_top = 160.0
+margin_bottom = 240.0
+mouse_filter = 1
+align = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}