From 5c5b35f0d185cd861e14a46a5bd8216cd10ed97d Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 10 May 2024 14:44:35 +0200 Subject: [PATCH] Added messages and errors to plugin.gd --- sui/plugin.gd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sui/plugin.gd b/sui/plugin.gd index 7be64c2..8230598 100644 --- a/sui/plugin.gd +++ b/sui/plugin.gd @@ -1,6 +1,10 @@ @tool extends EditorPlugin -func _enter_tree(): pass +func _enter_tree(): + if !FileAccess.file_exists("res://CORE/.corebasepath") and !FileAccess.file_exists("res://addons/CORE/.corebasepath"): + printerr("The CORE Framework is not installed in your project.\nPlease install the CORE Framework for StarOpenSource UI to work.\nSee https://core.staropensource.de/category/getting-started/") + -func _exit_tree(): pass +func _exit_tree(): + print("Thank you for using StarOpenSource UI")