mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-12-22 07:35:56 +00:00
Add ScreenReader
as a custom node in the editor plugin.
This commit is contained in:
parent
981606ab21
commit
e82fd7f8b8
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
||||||
addons/godot-tts
|
*.import
|
||||||
|
|
|
@ -10,3 +10,7 @@ func _enter_tree():
|
||||||
get_tree().root.call_deferred("add_child", screen_reader)
|
get_tree().root.call_deferred("add_child", screen_reader)
|
||||||
call_deferred("connect", "scene_changed", screen_reader, "set_initial_scene_focus")
|
call_deferred("connect", "scene_changed", screen_reader, "set_initial_scene_focus")
|
||||||
call_deferred("connect", "main_screen_changed", screen_reader, "set_initial_screen_focus")
|
call_deferred("connect", "main_screen_changed", screen_reader, "set_initial_screen_focus")
|
||||||
|
add_custom_type("ScreenReader", "Node", preload("ScreenReader.gd"), preload("icon.png"))
|
||||||
|
|
||||||
|
func _exit_tree():
|
||||||
|
remove_custom_type("ScreenReader")
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
tool
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
var Accessible = preload("Accessible.gd")
|
var Accessible = preload("Accessible.gd")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user