diff options
author | Sofox <sofoxx@gmail.com> | 2023-11-20 12:06:54 +0000 |
---|---|---|
committer | Sofox <sofoxx@gmail.com> | 2024-05-02 13:28:59 +0100 |
commit | b823724e007bc3f505369b7d768373bbb8f503e6 (patch) | |
tree | 10b63f05df5e1119cff6629c250e24cb78dc0f2d /editor/editor_log.h | |
parent | 06d105e268ace265809ae3fac2f17ccea9ff88dd (diff) | |
download | redot-engine-b823724e007bc3f505369b7d768373bbb8f503e6.tar.gz |
Add line limit to Editor Output Log
Diffstat (limited to 'editor/editor_log.h')
-rw-r--r-- | editor/editor_log.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_log.h b/editor/editor_log.h index 601e63b9fe..7012a2a43c 100644 --- a/editor/editor_log.h +++ b/editor/editor_log.h @@ -128,6 +128,8 @@ private: } }; + int line_limit = 10000; + Vector<LogMessage> messages; // Maps MessageTypes to LogFilters for convenient access and storage (don't need 1 member per filter). HashMap<MessageType, LogFilter *> type_filter_map; @@ -164,6 +166,7 @@ private: void _rebuild_log(); void _add_log_line(LogMessage &p_message, bool p_replace_previous = false); + bool _check_display_message(LogMessage &p_message); void _set_filter_active(bool p_active, MessageType p_message_type); void _set_search_visible(bool p_visible); @@ -179,6 +182,7 @@ private: void _load_state(); void _update_theme(); + void _editor_settings_changed(); protected: void _notification(int p_what); |