diff options
| author | Eric M <itsjusteza@gmail.com> | 2021-05-18 13:09:19 +1000 |
|---|---|---|
| committer | Eric M <itsjusteza@gmail.com> | 2021-06-19 22:20:30 +1000 |
| commit | d0e78c86d72de1ec5d1c49de5c5ee2fff9589efc (patch) | |
| tree | 4cf90a7ab74252dae0eccb64e025910b348f92c1 /editor/plugins/script_text_editor.h | |
| parent | 0a6a71973e50e31fef7b91658ab713ae5db5033f (diff) | |
| download | redot-engine-d0e78c86d72de1ec5d1c49de5c5ee2fff9589efc.tar.gz | |
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.
Diffstat (limited to 'editor/plugins/script_text_editor.h')
| -rw-r--r-- | editor/plugins/script_text_editor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.h b/editor/plugins/script_text_editor.h index 7bb961bf19..8a8e9aa737 100644 --- a/editor/plugins/script_text_editor.h +++ b/editor/plugins/script_text_editor.h @@ -55,6 +55,7 @@ class ScriptTextEditor : public ScriptEditorBase { CodeTextEditor *code_editor = nullptr; RichTextLabel *warnings_panel = nullptr; + RichTextLabel *errors_panel = nullptr; Ref<Script> script; bool script_is_valid = false; @@ -161,7 +162,9 @@ protected: void _load_theme_settings(); void _set_theme_for_script(); + void _show_errors_panel(bool p_show); void _show_warnings_panel(bool p_show); + void _error_clicked(Variant p_line); void _warning_clicked(Variant p_line); void _notification(int p_what); |
