diff options
| author | dam <dam@gudinoff> | 2021-12-03 16:09:17 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2021-12-03 16:09:17 +0000 |
| commit | 29dcd16f71fd49e43c8df14844e04be9d5745f54 (patch) | |
| tree | 64a554adbc8aead5c9bd2b9faabc94b53a5e424f /date_picker/date_picker.tscn | |
| parent | 4faf8bb004dbb2161e736028469333b9b6c99775 (diff) | |
| download | surgery-log-29dcd16f71fd49e43c8df14844e04be9d5745f54.tar.zst surgery-log-29dcd16f71fd49e43c8df14844e04be9d5745f54.zip | |
Parameterize the range of values to be picked.
Diffstat (limited to 'date_picker/date_picker.tscn')
| -rw-r--r-- | date_picker/date_picker.tscn | 51 |
1 files changed, 37 insertions, 14 deletions
diff --git a/date_picker/date_picker.tscn b/date_picker/date_picker.tscn index 84b2089..440296a 100644 --- a/date_picker/date_picker.tscn +++ b/date_picker/date_picker.tscn @@ -10,15 +10,16 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="day_scroll" type="Control" parent="."] +[node name="year_scroll" type="Control" parent="."] anchor_right = 0.333 anchor_bottom = 1.0 script = ExtResource( 1 ) __meta__ = { "_edit_use_anchors_": false } +max_value = 9999 -[node name="value_previous" type="Label" parent="day_scroll"] +[node name="value_previous" type="Label" parent="year_scroll"] anchor_right = 1.0 anchor_bottom = 0.333 mouse_filter = 1 @@ -28,7 +29,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="ColorRect" type="ColorRect" parent="day_scroll/value_previous"] +[node name="ColorRect" type="ColorRect" parent="year_scroll/value_previous"] anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 @@ -37,7 +38,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="value" type="Label" parent="day_scroll"] +[node name="value" type="Label" parent="year_scroll"] anchor_top = 0.333 anchor_right = 1.0 anchor_bottom = 0.666 @@ -48,7 +49,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="ColorRect" type="ColorRect" parent="day_scroll/value"] +[node name="ColorRect" type="ColorRect" parent="year_scroll/value"] anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 @@ -57,7 +58,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="value_next" type="Label" parent="day_scroll"] +[node name="value_next" type="Label" parent="year_scroll"] anchor_top = 0.666 anchor_right = 1.0 anchor_bottom = 1.0 @@ -68,7 +69,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="ColorRect" type="ColorRect" parent="day_scroll/value_next"] +[node name="ColorRect" type="ColorRect" parent="year_scroll/value_next"] anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 @@ -77,11 +78,17 @@ __meta__ = { "_edit_use_anchors_": false } +[node name="debug" type="Label" parent="year_scroll"] +anchor_right = 1.0 +anchor_bottom = 1.0 + [node name="month_scroll" type="Control" parent="."] anchor_left = 0.333 anchor_right = 0.666 anchor_bottom = 1.0 script = ExtResource( 1 ) +min_value = 1 +max_value = 12 [node name="value_previous" type="Label" parent="month_scroll"] anchor_right = 1.0 @@ -142,13 +149,22 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="year_scroll" type="Control" parent="."] +[node name="debug" type="Label" parent="month_scroll"] +anchor_right = 1.0 +anchor_bottom = 1.0 + +[node name="day_scroll" type="Control" parent="."] anchor_left = 0.666 anchor_right = 1.0 anchor_bottom = 1.0 script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} +min_value = 1 +max_value = 31 -[node name="value_previous" type="Label" parent="year_scroll"] +[node name="value_previous" type="Label" parent="day_scroll"] anchor_right = 1.0 anchor_bottom = 0.333 mouse_filter = 1 @@ -158,7 +174,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="ColorRect" type="ColorRect" parent="year_scroll/value_previous"] +[node name="ColorRect" type="ColorRect" parent="day_scroll/value_previous"] anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 @@ -167,7 +183,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="value" type="Label" parent="year_scroll"] +[node name="value" type="Label" parent="day_scroll"] anchor_top = 0.333 anchor_right = 1.0 anchor_bottom = 0.666 @@ -178,7 +194,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="ColorRect" type="ColorRect" parent="year_scroll/value"] +[node name="ColorRect" type="ColorRect" parent="day_scroll/value"] anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 @@ -187,7 +203,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="value_next" type="Label" parent="year_scroll"] +[node name="value_next" type="Label" parent="day_scroll"] anchor_top = 0.666 anchor_right = 1.0 anchor_bottom = 1.0 @@ -198,7 +214,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="ColorRect" type="ColorRect" parent="year_scroll/value_next"] +[node name="ColorRect" type="ColorRect" parent="day_scroll/value_next"] anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 @@ -207,6 +223,13 @@ __meta__ = { "_edit_use_anchors_": false } +[node name="debug" type="Label" parent="day_scroll"] +anchor_right = 1.0 +anchor_bottom = 1.0 +__meta__ = { +"_edit_use_anchors_": false +} + [node name="split_previous" type="ColorRect" parent="."] anchor_top = 0.333 anchor_right = 1.0 |
