aboutsummaryrefslogtreecommitdiff
path: root/date_picker
diff options
context:
space:
mode:
Diffstat (limited to 'date_picker')
-rw-r--r--date_picker/date_picker.gd1
-rw-r--r--date_picker/date_picker.tscn1
-rw-r--r--date_picker/value_picker.gd2
3 files changed, 2 insertions, 2 deletions
diff --git a/date_picker/date_picker.gd b/date_picker/date_picker.gd
index 6298156..fb9cca2 100644
--- a/date_picker/date_picker.gd
+++ b/date_picker/date_picker.gd
@@ -1,5 +1,4 @@
extends Control
-
class_name DatePicker
const days_per_month: Dictionary = {
diff --git a/date_picker/date_picker.tscn b/date_picker/date_picker.tscn
index 6506c31..21573dc 100644
--- a/date_picker/date_picker.tscn
+++ b/date_picker/date_picker.tscn
@@ -19,6 +19,7 @@ script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
+min_value = 1
max_value = 9999
[node name="previous" type="Label" parent="year"]
diff --git a/date_picker/value_picker.gd b/date_picker/value_picker.gd
index d25a143..5e77294 100644
--- a/date_picker/value_picker.gd
+++ b/date_picker/value_picker.gd
@@ -120,7 +120,7 @@ func input_focus_entered():
func input_focus_exited():
if input.text.is_valid_integer():
- value = wrapi(int(input.text), min_value, max_value)
+ value = wrapi(int(input.text), min_value, max_value + 1)
input.visible = false