96 lines
2.4 KiB
Plaintext
96 lines
2.4 KiB
Plaintext
[gd_scene format=3 uid="uid://dp12345678"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/date_picker.gd" id="1_dp"]
|
|
|
|
[node name="DatePicker" type="Button"]
|
|
custom_minimum_size = Vector2(120, 36)
|
|
text = "Select Date..."
|
|
script = ExtResource("1_dp")
|
|
|
|
[node name="PopupPanel" type="PopupPanel" parent="."]
|
|
size = Vector2i(260, 280)
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="PopupPanel"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 4.0
|
|
offset_top = 4.0
|
|
offset_right = -4.0
|
|
offset_bottom = -4.0
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="Header" type="HBoxContainer" parent="PopupPanel/VBox"]
|
|
layout_mode = 2
|
|
|
|
[node name="PrevBtn" type="Button" parent="PopupPanel/VBox/Header"]
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
text = "<"
|
|
|
|
[node name="MonthYearLbl" type="Label" parent="PopupPanel/VBox/Header"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Month Year"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="NextBtn" type="Button" parent="PopupPanel/VBox/Header"]
|
|
custom_minimum_size = Vector2(30, 0)
|
|
layout_mode = 2
|
|
text = ">"
|
|
|
|
[node name="Weekdays" type="GridContainer" parent="PopupPanel/VBox"]
|
|
layout_mode = 2
|
|
columns = 7
|
|
|
|
[node name="Sun" type="Label" parent="PopupPanel/VBox/Weekdays"]
|
|
custom_minimum_size = Vector2(32, 0)
|
|
layout_mode = 2
|
|
text = "Su"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Mon" type="Label" parent="PopupPanel/VBox/Weekdays"]
|
|
custom_minimum_size = Vector2(32, 0)
|
|
layout_mode = 2
|
|
text = "Mo"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Tue" type="Label" parent="PopupPanel/VBox/Weekdays"]
|
|
custom_minimum_size = Vector2(32, 0)
|
|
layout_mode = 2
|
|
text = "Tu"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Wed" type="Label" parent="PopupPanel/VBox/Weekdays"]
|
|
custom_minimum_size = Vector2(32, 0)
|
|
layout_mode = 2
|
|
text = "We"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Thu" type="Label" parent="PopupPanel/VBox/Weekdays"]
|
|
custom_minimum_size = Vector2(32, 0)
|
|
layout_mode = 2
|
|
text = "Th"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Fri" type="Label" parent="PopupPanel/VBox/Weekdays"]
|
|
custom_minimum_size = Vector2(32, 0)
|
|
layout_mode = 2
|
|
text = "Fr"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Sat" type="Label" parent="PopupPanel/VBox/Weekdays"]
|
|
custom_minimum_size = Vector2(32, 0)
|
|
layout_mode = 2
|
|
text = "Sa"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="DaysGrid" type="GridContainer" parent="PopupPanel/VBox"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
columns = 7
|
|
|
|
[node name="ClearBtn" type="Button" parent="PopupPanel/VBox"]
|
|
layout_mode = 2
|
|
text = "Clear Date"
|