mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 03:45:56 +00:00
Better presentation of checkboxes.
This commit is contained in:
parent
421dcbcf42
commit
fc985bfd93
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user