diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-10-26 00:22:12 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-10-26 00:22:12 +0000 |
commit | db8b740bfa402c929247efd954096fac7b72b2a3 (patch) | |
tree | 62164d11ad6ce852bb672298068b69f9b5b4de7e /src/gui/chat.cpp | |
parent | 4f49eb94ddf9d2f0f3c59560c761188d101bd5f8 (diff) | |
download | mana-db8b740bfa402c929247efd954096fac7b72b2a3.tar.gz mana-db8b740bfa402c929247efd954096fac7b72b2a3.tar.bz2 mana-db8b740bfa402c929247efd954096fac7b72b2a3.tar.xz mana-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.cpp | 2 |
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()); |