From 34e9799613fd306785744e781f0993f91aa0d4c0 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 19 Jul 2018 15:15:49 +0000 Subject: [PATCH] Present tooltips and note unlabelled buttons. --- addons/accessibility/accessible.gd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/accessibility/accessible.gd b/addons/accessibility/accessible.gd index 09f23f7..22deeb8 100644 --- a/addons/accessibility/accessible.gd +++ b/addons/accessibility/accessible.gd @@ -12,7 +12,10 @@ func focus_button(): var text = "Unlabelled" if node.text: text = node.text - print("%s: button" % text) + if text: + print("%s: button" % text) + else: + print("button") var list_pos = 0 @@ -102,6 +105,8 @@ func focused(): focus_tree() else: print("Focus entered.", node) + if node.hint_tooltip: + print(node.hint_tooltip) func unfocused(): if node is ItemList: