summaryrefslogtreecommitdiff
path: root/editor/editor_inspector.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_inspector.h')
-rw-r--r--editor/editor_inspector.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_inspector.h b/editor/editor_inspector.h
index 30c0cffe40..2b89fb3f9f 100644
--- a/editor/editor_inspector.h
+++ b/editor/editor_inspector.h
@@ -205,11 +205,13 @@ public:
class EditorInspectorPlugin : public RefCounted {
GDCLASS(EditorInspectorPlugin, RefCounted);
+public:
friend class EditorInspector;
struct AddedEditor {
Control *property_editor = nullptr;
Vector<String> properties;
String label;
+ bool add_to_end = false;
};
List<AddedEditor> added_editors;
@@ -226,7 +228,7 @@ protected:
public:
void add_custom_control(Control *control);
- void add_property_editor(const String &p_for_property, Control *p_prop);
+ void add_property_editor(const String &p_for_property, Control *p_prop, bool p_add_to_end = false);
void add_property_editor_for_multiple_properties(const String &p_label, const Vector<String> &p_properties, Control *p_prop);
virtual bool can_handle(Object *p_object);