mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 13:11:13 +00:00
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.
This commit is contained in:
parent
0a6a71973e
commit
d0e78c86d7
16 changed files with 163 additions and 63 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue