From 0e8ee84d7477416dce4ad0d3fdde893676a9df6f Mon Sep 17 00:00:00 2001 From: "Esteban I. RM" Date: Sun, 15 Oct 2017 20:28:42 -0300 Subject: Implement #6096 --- src/chat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/chat.h') diff --git a/src/chat.h b/src/chat.h index 38727c668..b1b3edcb0 100644 --- a/src/chat.h +++ b/src/chat.h @@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" #include "util/enriched_string.h" +#include "settings.h" // Chat console related classes @@ -118,6 +119,7 @@ public: u32 formatChatLine(const ChatLine& line, u32 cols, std::vector& destination) const; + void resize(u32 scrollback); protected: s32 getTopScrollPos() const; s32 getBottomScrollPos() const; @@ -281,6 +283,9 @@ public: void scrollPageDown(); void scrollPageUp(); + // Resize recent buffer based on settings + void applySettings(Settings* settings); + private: ChatBuffer m_console_buffer; ChatBuffer m_recent_buffer; -- cgit v1.2.3