From 760cdbe1a31837bcb142de6912718fd80f57346b Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 25 Jun 2017 17:30:28 -0300 Subject: -Added folding to property editor, persistent on objects it edits -Some changes to tree to support this properly --- core/object.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/object.h') diff --git a/core/object.h b/core/object.h index 83b03b9239..fabd10fa1f 100644 --- a/core/object.h +++ b/core/object.h @@ -430,6 +430,7 @@ private: #ifdef TOOLS_ENABLED bool _edited; uint32_t _edited_version; + Set editor_section_folding; #endif ScriptInstance *script_instance; RefPtr script; @@ -666,6 +667,11 @@ public: _FORCE_INLINE_ void set_message_translation(bool p_enable) { _can_translate = p_enable; } _FORCE_INLINE_ bool can_translate_messages() const { return _can_translate; } +#ifdef TOOLS_ENABLED + void editor_set_section_unfold(const String &p_section, bool p_unfolded); + bool editor_is_section_unfolded(const String &p_section); +#endif + void clear_internal_resource_paths(); Object(); -- cgit v1.2.3