diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-06-25 17:30:28 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-06-25 17:31:22 -0300 |
commit | 760cdbe1a31837bcb142de6912718fd80f57346b (patch) | |
tree | 2b11c560a4e20999d54a391cc4c803504cd46907 /core/object.h | |
parent | 826784d965a5200670f13709d69e3135bf1f4d9e (diff) |
-Added folding to property editor, persistent on objects it edits
-Some changes to tree to support this properly
Diffstat (limited to 'core/object.h')
-rw-r--r-- | core/object.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<String> 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(); |