From 2ee04f5978f494e9854240a0c63a3f3091edd283 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 7 Sep 2019 12:26:50 -0500 Subject: [PATCH] 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. --- .gitignore | 2 +- Globals.gd | 2 +- addons/accessibility/accessibility.gd | 7 ++++++- addons/accessibility/accessible.gd | 1 + godot_tts.gdnlib | 1 - godot_tts.gdns | 1 - 6 files changed, 9 insertions(+), 5 deletions(-) delete mode 120000 godot_tts.gdnlib delete mode 120000 godot_tts.gdns diff --git a/.gitignore b/.gitignore index eb5a316..d1ab835 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -target +addons/godot-tts diff --git a/Globals.gd b/Globals.gd index 717aee1..6c4fef6 100644 --- a/Globals.gd +++ b/Globals.gd @@ -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. diff --git a/addons/accessibility/accessibility.gd b/addons/accessibility/accessibility.gd index 278a501..45200c6 100644 --- a/addons/accessibility/accessibility.gd +++ b/addons/accessibility/accessibility.gd @@ -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") diff --git a/addons/accessibility/accessible.gd b/addons/accessibility/accessible.gd index 3a97f93..0a80177 100644 --- a/addons/accessibility/accessible.gd +++ b/addons/accessibility/accessible.gd @@ -319,6 +319,7 @@ func focused(): tts.speak(node.hint_tooltip, false) func unfocused(): + print("Unfocused") position_in_children = 0 func gui_input(event): diff --git a/godot_tts.gdnlib b/godot_tts.gdnlib deleted file mode 120000 index bca9883..0000000 --- a/godot_tts.gdnlib +++ /dev/null @@ -1 +0,0 @@ -/home/nolan/Projects/godot/godot-tts/godot_tts.gdnlib \ No newline at end of file diff --git a/godot_tts.gdns b/godot_tts.gdns deleted file mode 120000 index 1807d8f..0000000 --- a/godot_tts.gdns +++ /dev/null @@ -1 +0,0 @@ -/home/nolan/Projects/godot/godot-tts/godot_tts.gdns \ No newline at end of file