Add ScreenReader as a custom node in the editor plugin.

This commit is contained in:
Nolan Darilek 2019-09-24 09:20:45 -05:00
parent 981606ab21
commit e82fd7f8b8
4 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
addons/godot-tts
*.import

View File

@ -10,3 +10,7 @@ func _enter_tree():
get_tree().root.call_deferred("add_child", screen_reader)
call_deferred("connect", "scene_changed", screen_reader, "set_initial_scene_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")

View File

@ -1,3 +1,4 @@
tool
extends Node
var Accessible = preload("Accessible.gd")

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB