Add drag and drop info label
This commit is contained in:
parent
92a90a8e6f
commit
2d03275c88
4 changed files with 81 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ class ScriptTextEditor : public CodeEditorBase {
|
|||
bool script_is_valid = false;
|
||||
|
||||
RichTextLabel *errors_panel = nullptr;
|
||||
Label *drag_info_label = nullptr;
|
||||
|
||||
Vector<String> functions;
|
||||
List<ScriptLanguage::Warning> warnings;
|
||||
|
|
@ -173,6 +174,7 @@ protected:
|
|||
void _show_warnings_panel(bool p_show);
|
||||
void _error_clicked(const Variant &p_line);
|
||||
virtual bool _warning_clicked(const Variant &p_line) override;
|
||||
void _on_mouse_exited();
|
||||
|
||||
bool _is_valid_color_info(const Dictionary &p_info);
|
||||
Array _inline_object_parse(const String &p_text);
|
||||
|
|
@ -198,6 +200,8 @@ protected:
|
|||
bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;
|
||||
void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from);
|
||||
|
||||
void _set_drop_info_text(const Dictionary &p_info) const;
|
||||
|
||||
String _get_absolute_path(const String &rel_path);
|
||||
|
||||
void _goto_line(int p_line) { goto_line(p_line); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue