mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-12-22 07:35:56 +00:00
Add presentation for buttons.
This commit is contained in:
parent
84df5394cc
commit
417a865bdb
|
@ -15,7 +15,6 @@ func augment_tree(node):
|
|||
func set_initial_screen_focus(screen):
|
||||
self.augment_tree(get_tree().root)
|
||||
var focus = find_focusable_control(get_tree().root)
|
||||
print("Focus ",focus, focus.is_in_group("accessible"))
|
||||
if not focus:
|
||||
return
|
||||
focus.grab_click_focus()
|
||||
|
|
|
@ -3,7 +3,13 @@ extends Object
|
|||
var node
|
||||
|
||||
func focused():
|
||||
print("Focus entered.", self.node)
|
||||
if node is Button:
|
||||
var text = "Unlabelled"
|
||||
if node.text:
|
||||
text = node.text
|
||||
print("%s: button" % text)
|
||||
else:
|
||||
print("Focus entered.", self.node)
|
||||
|
||||
func unfocused():
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user