mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-12 16:45:56 +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"
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user