Allow to customize TabContainer tabs in editor

This commit is contained in:
kobewi
2022-03-04 15:06:03 +01:00
parent ccf414ecb4
commit 646ac8494b
4 changed files with 123 additions and 10 deletions

View File

@ -48,7 +48,9 @@ class PropertyListHelper {
HashMap<String, Property> property_list;
Object *object = nullptr;
const Property *_get_property(const String &p_property, int *r_index) const;
bool allow_oob_assign = false;
const Property *_get_property(const String &p_property, int *r_index, bool p_allow_oob = false) const;
void _call_setter(const MethodBind *p_setter, int p_index, const Variant &p_value) const;
Variant _call_getter(const Property *p_property, int p_index) const;
int _call_array_length_getter() const;
@ -87,5 +89,7 @@ public:
bool property_can_revert(const String &p_property) const;
bool property_get_revert(const String &p_property, Variant &r_value) const;
void enable_out_of_bounds_assign() { allow_oob_assign = true; }
void clear();
};