diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-25 22:35:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-25 22:35:30 +0300 |
commit | dcfc97836830d4100a0a520b77d68d908314ee60 (patch) | |
tree | c35eccea345638b1abe2a3875065a36065bf8691 /src/gui/npcdialog.cpp | |
parent | f939a7bbbc19bb69726377eed7b36542d6a5cf3f (diff) | |
download | plus-dcfc97836830d4100a0a520b77d68d908314ee60.tar.gz plus-dcfc97836830d4100a0a520b77d68d908314ee60.tar.bz2 plus-dcfc97836830d4100a0a520b77d68d908314ee60.tar.xz plus-dcfc97836830d4100a0a520b77d68d908314ee60.zip |
Add npc font size with 13 pixels size.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index ec33f3f0d..39f4d75b3 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -25,6 +25,8 @@ #include "configuration.h" #include "client.h" +#include "gui/gui.h" +#include "gui/sdlfont.h" #include "gui/setup.h" #include "gui/viewport.h" @@ -86,6 +88,7 @@ NpcDialog::NpcDialog(int npcId) : mTextBox->setOpaque(false); mTextBox->setMaxRow(config.getIntValue("ChatLogLength")); mTextBox->setLinkHandler(mItemLinkHandler); + mTextBox->setFont(gui->getNpcFont()); mScrollArea = new ScrollArea(mTextBox); mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); @@ -97,6 +100,7 @@ NpcDialog::NpcDialog(int npcId) : mItemList->setActionEventId("ok"); mItemList->addActionListener(this); mItemList->setDistributeMousePressed(false); + mItemList->setFont(gui->getNpcFont()); setContentSize(260, 175); |