mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-23 20:35:57 +00:00
Minor changes.
* Reference godot-tts addon via `res://addons/godot-tts`. * Add notification handler to eventually trap window close, doesn't currently seem to work.
This commit is contained in:
parent
51a6f1410f
commit
2ee04f5978
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
target
|
||||
addons/godot-tts
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
const TTS = preload("res://godot_tts.gdns")
|
||||
const TTS = preload("res://addons/godot-tts/godot_tts.gdns")
|
||||
var tts
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
|
|
|
@ -3,7 +3,7 @@ extends EditorPlugin
|
|||
|
||||
var Accessible = preload("accessible.gd")
|
||||
|
||||
const TTS = preload("res://godot_tts.gdns")
|
||||
const TTS = preload("res://addons/godot-tts/godot_tts.gdns")
|
||||
var tts
|
||||
|
||||
func augment_node(node):
|
||||
|
@ -54,3 +54,8 @@ func _enter_tree():
|
|||
func _exit_tree():
|
||||
# Clean-up of the plugin goes here
|
||||
pass
|
||||
|
||||
func _notification(what):
|
||||
print("Notified: %s" % what)
|
||||
if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST:
|
||||
print("User requested the project to quit")
|
||||
|
|
|
@ -319,6 +319,7 @@ func focused():
|
|||
tts.speak(node.hint_tooltip, false)
|
||||
|
||||
func unfocused():
|
||||
print("Unfocused")
|
||||
position_in_children = 0
|
||||
|
||||
func gui_input(event):
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/home/nolan/Projects/godot/godot-tts/godot_tts.gdnlib
|
|
@ -1 +0,0 @@
|
|||
/home/nolan/Projects/godot/godot-tts/godot_tts.gdns
|
Loading…
Reference in New Issue
Block a user