From fc985bfd9386f19c9e5e34ff51e0801c88ef5b2b Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 9 Sep 2019 14:45:44 -0500 Subject: [PATCH] Better presentation of checkboxes. --- addons/accessibility/accessible.gd | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/addons/accessibility/accessible.gd b/addons/accessibility/accessible.gd index ab101d3..3fd25e7 100644 --- a/addons/accessibility/accessible.gd +++ b/addons/accessibility/accessible.gd @@ -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)