summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-02 22:03:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-02 22:03:56 +0300
commit5b62d57146fb2700473bbee72e94b5ead775deb3 (patch)
tree934d55816ec24dec2c7bac4a031adeecb56c2a67 /src/gui/npcdialog.cpp
parentca0032e744ea7244e70714ed356cfdb37dc26be2 (diff)
downloadplus-5b62d57146fb2700473bbee72e94b5ead775deb3.tar.gz
plus-5b62d57146fb2700473bbee72e94b5ead775deb3.tar.bz2
plus-5b62d57146fb2700473bbee72e94b5ead775deb3.tar.xz
plus-5b62d57146fb2700473bbee72e94b5ead775deb3.zip
Add option to show/hide background in npc dialog.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index 567fcda06..240b53890 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -100,7 +100,8 @@ NpcDialog::NpcDialog(int npcId) :
mTextBox->setLinkHandler(mItemLinkHandler);
mTextBox->setFont(gui->getNpcFont());
- mScrollArea = new ScrollArea(mTextBox);
+ mScrollArea = new ScrollArea(mTextBox,
+ getOptionBool("showtextbackground"));
mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mScrollArea->setVerticalScrollPolicy(gcn::ScrollArea::SHOW_ALWAYS);
@@ -118,7 +119,8 @@ NpcDialog::NpcDialog(int npcId) :
setContentSize(260, 175);
- mListScrollArea = new ScrollArea(mItemList);
+ mListScrollArea = new ScrollArea(mItemList,
+ getOptionBool("showlistbackground"));
mListScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mItemList->setVisible(true);