Better presentation of checkboxes.

This commit is contained in:
Nolan Darilek 2019-09-09 14:45:44 -05:00
parent 421dcbcf42
commit fc985bfd93

View File

@ -51,18 +51,11 @@ func accept_dialog_focus():
node.add_child(dialog_close_timer) node.add_child(dialog_close_timer)
func checkbox_focus(): func checkbox_focus():
var text = "" var text
if node.text:
text = node.text
var state
if node.pressed: if node.pressed:
state = "checked" text = "checked"
else: else:
state = "unchecked" text = "unchecked"
if text:
text += ": " + state
else:
text = state
text += " checkbox" text += " checkbox"
tts.speak(text, false) tts.speak(text, false)