aboutsummaryrefslogtreecommitdiff
path: root/date_picker
diff options
context:
space:
mode:
authordam <dam@gudinoff>2021-12-16 01:17:34 +0000
committerdam <dam@gudinoff>2021-12-16 01:17:34 +0000
commit9724fb73abf9fd3760a4f3f3ac941a119708c97b (patch)
tree1892493f0e922a3c0b99c049a7039771d739dea7 /date_picker
parentecd75887d99d887aabe828f4511d9fd3e1c41428 (diff)
downloadsurgery-log-9724fb73abf9fd3760a4f3f3ac941a119708c97b.tar.zst
surgery-log-9724fb73abf9fd3760a4f3f3ac941a119708c97b.zip
First prototype with working database and staging area.
Fix incorrect warp in date picker. Disable physics engine.
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