mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-25 05:15:57 +00:00
Present tooltips and note unlabelled buttons.
This commit is contained in:
parent
2c5babe103
commit
34e9799613
|
@ -12,7 +12,10 @@ func focus_button():
|
||||||
var text = "Unlabelled"
|
var text = "Unlabelled"
|
||||||
if node.text:
|
if node.text:
|
||||||
text = node.text
|
text = node.text
|
||||||
|
if text:
|
||||||
print("%s: button" % text)
|
print("%s: button" % text)
|
||||||
|
else:
|
||||||
|
print("button")
|
||||||
|
|
||||||
var list_pos = 0
|
var list_pos = 0
|
||||||
|
|
||||||
|
@ -102,6 +105,8 @@ func focused():
|
||||||
focus_tree()
|
focus_tree()
|
||||||
else:
|
else:
|
||||||
print("Focus entered.", node)
|
print("Focus entered.", node)
|
||||||
|
if node.hint_tooltip:
|
||||||
|
print(node.hint_tooltip)
|
||||||
|
|
||||||
func unfocused():
|
func unfocused():
|
||||||
if node is ItemList:
|
if node is ItemList:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user