diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-15 04:25:14 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-15 04:25:14 +0200 |
commit | f7c1149be85d90f05d55bc2c975432a6d9d6012e (patch) | |
tree | e513c449796a3c9131bea2be5b543796cfaa3d84 /src | |
parent | cd7790c3220e75019c6d34185682df6d0251408b (diff) | |
download | mv-f7c1149be85d90f05d55bc2c975432a6d9d6012e.tar.gz mv-f7c1149be85d90f05d55bc2c975432a6d9d6012e.tar.bz2 mv-f7c1149be85d90f05d55bc2c975432a6d9d6012e.tar.xz mv-f7c1149be85d90f05d55bc2c975432a6d9d6012e.zip |
Add auto wrap and lines limit for npc dialogs.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/npcdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 1859329ab..6f4fcc037 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -74,8 +74,9 @@ NpcDialog::NpcDialog(int npcId) mItemLinkHandler = new ItemLinkHandler; // Setup output text box - mTextBox = new BrowserBox; + mTextBox = new BrowserBox(BrowserBox::AUTO_WRAP); mTextBox->setOpaque(false); + mTextBox->setMaxRow((int) config.getIntValue("ChatLogLength")); mTextBox->setLinkHandler(mItemLinkHandler); mScrollArea = new ScrollArea(mTextBox); |