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)
|
||||
|
||||
func checkbox_focus():
|
||||
var text = ""
|
||||
if node.text:
|
||||
text = node.text
|
||||
var state
|
||||
var text
|
||||
if node.pressed:
|
||||
state = "checked"
|
||||
text = "checked"
|
||||
else:
|
||||
state = "unchecked"
|
||||
if text:
|
||||
text += ": " + state
|
||||
else:
|
||||
text = state
|
||||
text = "unchecked"
|
||||
text += " checkbox"
|
||||
tts.speak(text, false)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user