aboutsummaryrefslogtreecommitdiff
path: root/date_picker
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-04-05 05:25:33 +0000
committerdam <dam@gudinoff>2022-04-05 05:25:33 +0000
commitee6d791f2b022d0c70616a490c78ba3a1f9c28f4 (patch)
tree10c152279900056b4d42ccb2238722c65e657d09 /date_picker
parent0093ad0682e493e5f8115566f71c8cb8a2d7c0d9 (diff)
downloadsurgery-log-ee6d791f2b022d0c70616a490c78ba3a1f9c28f4.tar.zst
surgery-log-ee6d791f2b022d0c70616a490c78ba3a1f9c28f4.zip
Fixed date picker to allow transparency on labels.
Diffstat (limited to 'date_picker')
-rw-r--r--date_picker/value_picker.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/date_picker/value_picker.gd b/date_picker/value_picker.gd
index ca1bcf4..b70f1aa 100644
--- a/date_picker/value_picker.gd
+++ b/date_picker/value_picker.gd
@@ -120,11 +120,13 @@ func input_focus_entered():
input.text = "%d" % value
input.visible = true
input.select_all()
+ label_current.self_modulate.a = 0.0
func input_focus_exited():
if input.text.is_valid_integer():
value = wrapi(int(input.text), min_value, max_value + 1)
input.visible = false
+ label_current.self_modulate.a = 1.0