diff options
Diffstat (limited to 'editor/editor_inspector.h')
-rw-r--r-- | editor/editor_inspector.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/editor_inspector.h b/editor/editor_inspector.h index 30c0cffe40..555fedf939 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); @@ -531,6 +533,7 @@ public: static void add_inspector_plugin(const Ref<EditorInspectorPlugin> &p_plugin); static void remove_inspector_plugin(const Ref<EditorInspectorPlugin> &p_plugin); static void cleanup_plugins(); + static Button *create_inspector_action_button(const String &p_text); static EditorProperty *instantiate_property_editor(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const uint32_t p_usage, const bool p_wide = false); |