diff options
Diffstat (limited to 'date_picker/date_picker.tscn')
| -rw-r--r-- | date_picker/date_picker.tscn | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/date_picker/date_picker.tscn b/date_picker/date_picker.tscn index 3414283..c7fc7c7 100644 --- a/date_picker/date_picker.tscn +++ b/date_picker/date_picker.tscn @@ -1,16 +1,18 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=3 format=2] -[ext_resource path="res://date_picker/scroll_picker.gd" type="Script" id=1] +[ext_resource path="res://date_picker/value_picker.gd" type="Script" id=1] +[ext_resource path="res://date_picker/date_picker.gd" type="Script" id=2] [node name="date_picker" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 mouse_filter = 2 +script = ExtResource( 2 ) __meta__ = { "_edit_use_anchors_": false } -[node name="year_value" type="Control" parent="."] +[node name="year" type="Control" parent="."] anchor_right = 0.333 anchor_bottom = 1.0 script = ExtResource( 1 ) @@ -19,7 +21,7 @@ __meta__ = { } max_value = 9999 -[node name="previous" type="Label" parent="year_value"] +[node name="previous" type="Label" parent="year"] anchor_right = 1.0 anchor_bottom = 0.333 mouse_filter = 1 @@ -29,7 +31,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="current" type="Label" parent="year_value"] +[node name="current" type="Label" parent="year"] anchor_top = 0.333 anchor_right = 1.0 anchor_bottom = 0.666 @@ -40,16 +42,16 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="input" type="LineEdit" parent="year_value/current"] +[node name="input" type="LineEdit" parent="year/current"] visible = false anchor_right = 1.0 anchor_bottom = 1.0 -focus_next = NodePath("../../../month_value/current/input") +focus_next = NodePath("../../../month/current/input") align = 1 max_length = 4 caret_blink = true -[node name="next" type="Label" parent="year_value"] +[node name="next" type="Label" parent="year"] anchor_top = 0.666 anchor_right = 1.0 anchor_bottom = 1.0 @@ -60,7 +62,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="month_value" type="Control" parent="."] +[node name="month" type="Control" parent="."] anchor_left = 0.333 anchor_right = 0.666 anchor_bottom = 1.0 @@ -68,7 +70,7 @@ script = ExtResource( 1 ) min_value = 1 max_value = 12 -[node name="previous" type="Label" parent="month_value"] +[node name="previous" type="Label" parent="month"] anchor_right = 1.0 anchor_bottom = 0.333 mouse_filter = 1 @@ -78,7 +80,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="current" type="Label" parent="month_value"] +[node name="current" type="Label" parent="month"] anchor_top = 0.333 anchor_right = 1.0 anchor_bottom = 0.666 @@ -89,17 +91,17 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="input" type="LineEdit" parent="month_value/current"] +[node name="input" type="LineEdit" parent="month/current"] visible = false anchor_right = 1.0 anchor_bottom = 1.0 -focus_next = NodePath("../../../day_value/current/input") -focus_previous = NodePath("../../../year_value/current/input") +focus_next = NodePath("../../../day/current/input") +focus_previous = NodePath("../../../year/current/input") align = 1 max_length = 2 caret_blink = true -[node name="next" type="Label" parent="month_value"] +[node name="next" type="Label" parent="month"] anchor_top = 0.666 anchor_right = 1.0 anchor_bottom = 1.0 @@ -110,7 +112,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="day_value" type="Control" parent="."] +[node name="day" type="Control" parent="."] anchor_left = 0.666 anchor_right = 1.0 anchor_bottom = 1.0 @@ -121,7 +123,7 @@ __meta__ = { min_value = 1 max_value = 31 -[node name="previous" type="Label" parent="day_value"] +[node name="previous" type="Label" parent="day"] anchor_right = 1.0 anchor_bottom = 0.333 mouse_filter = 1 @@ -131,7 +133,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="current" type="Label" parent="day_value"] +[node name="current" type="Label" parent="day"] anchor_top = 0.333 anchor_right = 1.0 anchor_bottom = 0.666 @@ -142,16 +144,16 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="input" type="LineEdit" parent="day_value/current"] +[node name="input" type="LineEdit" parent="day/current"] visible = false anchor_right = 1.0 anchor_bottom = 1.0 -focus_previous = NodePath("../../../month_value/current/input") +focus_previous = NodePath("../../../month/current/input") align = 1 max_length = 2 caret_blink = true -[node name="next" type="Label" parent="day_value"] +[node name="next" type="Label" parent="day"] anchor_top = 0.666 anchor_right = 1.0 anchor_bottom = 1.0 @@ -162,7 +164,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="split_previous" type="ColorRect" parent="."] +[node name="split_upper" type="ColorRect" parent="."] anchor_top = 0.333 anchor_right = 1.0 anchor_bottom = 0.343 @@ -171,7 +173,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="split_next" type="ColorRect" parent="."] +[node name="split_lower" type="ColorRect" parent="."] anchor_top = 0.666 anchor_right = 1.0 anchor_bottom = 0.676 |
