summaryrefslogtreecommitdiff
path: root/src/chat.h
diff options
context:
space:
mode:
authorEsteban I. RM <me@exio4.xyz>2017-10-15 20:28:42 -0300
committerLoic Blot <loic.blot@unix-experience.fr>2017-10-17 19:21:32 +0200
commit0e8ee84d7477416dce4ad0d3fdde893676a9df6f (patch)
treef9361f25bf87cd38d52882f01b52963f0a90d4f7 /src/chat.h
parent46f7fe91a2d404397115c3b970fa3b73f006519d (diff)
downloadminetest-0e8ee84d7477416dce4ad0d3fdde893676a9df6f.tar.gz
minetest-0e8ee84d7477416dce4ad0d3fdde893676a9df6f.tar.bz2
minetest-0e8ee84d7477416dce4ad0d3fdde893676a9df6f.zip
Implement #6096
Diffstat (limited to 'src/chat.h')
-rw-r--r--src/chat.h5
1 files changed, 5 insertions, 0 deletions
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<ChatFormattedLine>& 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;