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:
Nolan Darilek 2019-09-07 12:26:50 -05:00
parent 51a6f1410f
commit 2ee04f5978
6 changed files with 9 additions and 5 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
target addons/godot-tts

View File

@ -1,6 +1,6 @@
extends Node extends Node
const TTS = preload("res://godot_tts.gdns") const TTS = preload("res://addons/godot-tts/godot_tts.gdns")
var tts var tts
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.

View File

@ -3,7 +3,7 @@ extends EditorPlugin
var Accessible = preload("accessible.gd") var Accessible = preload("accessible.gd")
const TTS = preload("res://godot_tts.gdns") const TTS = preload("res://addons/godot-tts/godot_tts.gdns")
var tts var tts
func augment_node(node): func augment_node(node):
@ -54,3 +54,8 @@ func _enter_tree():
func _exit_tree(): func _exit_tree():
# Clean-up of the plugin goes here # Clean-up of the plugin goes here
pass pass
func _notification(what):
print("Notified: %s" % what)
if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST:
print("User requested the project to quit")

View File

@ -319,6 +319,7 @@ func focused():
tts.speak(node.hint_tooltip, false) tts.speak(node.hint_tooltip, false)
func unfocused(): func unfocused():
print("Unfocused")
position_in_children = 0 position_in_children = 0
func gui_input(event): func gui_input(event):

View File

@ -1 +0,0 @@
/home/nolan/Projects/godot/godot-tts/godot_tts.gdnlib

View File

@ -1 +0,0 @@
/home/nolan/Projects/godot/godot-tts/godot_tts.gdns