From 122875c4e7122527166a57b1d2c79bc4cd6cc072 Mon Sep 17 00:00:00 2001 From: Eric M Date: Tue, 18 May 2021 13:09:19 +1000 Subject: [PATCH] Added support for scripts reporting multiple errors to ScriptTextEditor Scripts can now report multiple errors to the scripting editors in the engine. UI elements were added to support multiple errors. --- visual_script.cpp | 2 +- visual_script.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/visual_script.cpp b/visual_script.cpp index 7badb1b..1047a4d 100644 --- a/visual_script.cpp +++ b/visual_script.cpp @@ -2276,7 +2276,7 @@ void VisualScriptLanguage::make_template(const String &p_class_name, const Strin script->set_instance_base_type(p_base_class_name); } -bool VisualScriptLanguage::validate(const String &p_script, int &r_line_error, int &r_col_error, String &r_test_error, const String &p_path, List *r_functions, List *r_warnings, Set *r_safe_lines) const { +bool VisualScriptLanguage::validate(const String &p_script, const String &p_path, List *r_functions, List *r_errors, List *r_warnings, Set *r_safe_lines) const { return false; } diff --git a/visual_script.h b/visual_script.h index 438ec99..5e848dc 100644 --- a/visual_script.h +++ b/visual_script.h @@ -571,7 +571,7 @@ public: virtual Ref