diff options
| author | dam <dam@gudinoff> | 2022-04-18 09:06:19 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-04-18 09:06:19 +0000 |
| commit | 79691f93bab7aa093bb606bfb80d2b4b236ee091 (patch) | |
| tree | 6e90c6601893895d7640f478f0cad402cc7590b4 /ui/date_picker/date_picker.tscn | |
| parent | 697e1ba3c4cb0a96c4584f1553de368d46287ab7 (diff) | |
| parent | ee31a9a3d387121030a5f4503adeac5816d7726f (diff) | |
| download | surgery-log-1.0.tar.zst surgery-log-1.0.zip | |
Merge godot branch.v1.0
Diffstat (limited to 'ui/date_picker/date_picker.tscn')
| -rw-r--r-- | ui/date_picker/date_picker.tscn | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/ui/date_picker/date_picker.tscn b/ui/date_picker/date_picker.tscn new file mode 100644 index 0000000..e3d88c4 --- /dev/null +++ b/ui/date_picker/date_picker.tscn @@ -0,0 +1,189 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://ui/date_picker/value_picker.gd" type="Script" id=1] +[ext_resource path="res://ui/date_picker/date_picker.gd" type="Script" id=2] + +[node name="date_picker" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +script = ExtResource( 2 ) + +[node name="year" type="Control" parent="."] +anchor_right = 0.333 +anchor_bottom = 1.0 +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} +min_value = 1 +max_value = 9999 + +[node name="previous" type="Label" parent="year"] +anchor_right = 1.0 +anchor_bottom = 0.333 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="current" type="Label" parent="year"] +anchor_top = 0.333 +anchor_right = 1.0 +anchor_bottom = 0.666 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="input" type="LineEdit" parent="year/current"] +visible = false +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +focus_next = NodePath("../../../month/current/input") +custom_constants/minimum_spaces = 0 +align = 1 +max_length = 4 +caret_blink = true + +[node name="next" type="Label" parent="year"] +anchor_top = 0.666 +anchor_right = 1.0 +anchor_bottom = 1.0 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="month" 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="previous" type="Label" parent="month"] +anchor_right = 1.0 +anchor_bottom = 0.333 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="current" type="Label" parent="month"] +anchor_top = 0.333 +anchor_right = 1.0 +anchor_bottom = 0.666 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="input" type="LineEdit" parent="month/current"] +visible = false +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +focus_next = NodePath("../../../day/current/input") +focus_previous = NodePath("../../../year/current/input") +custom_constants/minimum_spaces = 0 +align = 1 +max_length = 2 +caret_blink = true + +[node name="next" type="Label" parent="month"] +anchor_top = 0.666 +anchor_right = 1.0 +anchor_bottom = 1.0 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="day" 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="previous" type="Label" parent="day"] +anchor_right = 1.0 +anchor_bottom = 0.333 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="current" type="Label" parent="day"] +anchor_top = 0.333 +anchor_right = 1.0 +anchor_bottom = 0.666 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="input" type="LineEdit" parent="day/current"] +visible = false +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +focus_previous = NodePath("../../../month/current/input") +custom_constants/minimum_spaces = 0 +align = 1 +max_length = 2 +caret_blink = true + +[node name="next" type="Label" parent="day"] +anchor_top = 0.666 +anchor_right = 1.0 +anchor_bottom = 1.0 +mouse_filter = 1 +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="split_upper" type="ColorRect" parent="."] +anchor_top = 0.333 +anchor_right = 1.0 +anchor_bottom = 0.343 +color = Color( 1, 1, 1, 0.25 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="split_lower" type="ColorRect" parent="."] +anchor_top = 0.666 +anchor_right = 1.0 +anchor_bottom = 0.676 +color = Color( 1, 1, 1, 0.25 ) +__meta__ = { +"_edit_use_anchors_": false +} |
