summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-10-26 00:22:12 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-10-26 00:22:12 +0000
commitdb8b740bfa402c929247efd954096fac7b72b2a3 (patch)
tree62164d11ad6ce852bb672298068b69f9b5b4de7e /src/gui/chat.cpp
parent4f49eb94ddf9d2f0f3c59560c761188d101bd5f8 (diff)
downloadmana-client-db8b740bfa402c929247efd954096fac7b72b2a3.tar.gz
mana-client-db8b740bfa402c929247efd954096fac7b72b2a3.tar.bz2
mana-client-db8b740bfa402c929247efd954096fac7b72b2a3.tar.xz
mana-client-db8b740bfa402c929247efd954096fac7b72b2a3.zip
Added possibility of length limitation to browserbox and used it for the chatlog (length set by the config option "ChatLogLength").
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 48c84b96..10fc1577 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -33,6 +33,7 @@
#include "scrollarea.h"
#include "windowcontainer.h"
+#include "../configuration.h"
#include "../game.h"
#include "../localplayer.h"
@@ -61,6 +62,7 @@ ChatWindow::ChatWindow(Network *network):
mTextOutput = new BrowserBox(BrowserBox::AUTO_WRAP);
mTextOutput->setOpaque(false);
mTextOutput->disableLinksAndUserColors();
+ mTextOutput->setMaxRow((int) config.getValue("ChatLogLength", 0));
mScrollArea = new ScrollArea(mTextOutput);
mScrollArea->setPosition(
mScrollArea->getBorderSize(), mScrollArea->getBorderSize());