summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
commit30ba8a737da8b1811397786106085f2c13167803 (patch)
tree09e52b2fcb8ac35d3de76781de7508dc6a9c9278 /src/gui/windows/npcdialog.cpp
parent03f4d4beaaa2ea4ac99aa746460283d4ca644a3f (diff)
downloadmanaplus-30ba8a737da8b1811397786106085f2c13167803.tar.gz
manaplus-30ba8a737da8b1811397786106085f2c13167803.tar.bz2
manaplus-30ba8a737da8b1811397786106085f2c13167803.tar.xz
manaplus-30ba8a737da8b1811397786106085f2c13167803.zip
Remove default parameters from window.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r--src/gui/windows/npcdialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 4279c57eb..b93e843b7 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -104,7 +104,7 @@ NpcDialog::NpcDialog(const BeingId npcId) :
mTextBox(new BrowserBox(this, Opaque_true,
"browserbox.xml")),
mScrollArea(new ScrollArea(this, mTextBox,
- fromBool(getOptionBool("showtextbackground"), Opaque),
+ fromBool(getOptionBool("showtextbackground", false), Opaque),
"npc_textbackground.xml")),
mText(),
mNewText(),
@@ -113,11 +113,11 @@ NpcDialog::NpcDialog(const BeingId npcId) :
mItemList(CREATEWIDGETR(ExtendedListBox,
this, this, "extendedlistbox.xml", 13)),
mListScrollArea(new ScrollArea(this, mItemList,
- fromBool(getOptionBool("showlistbackground"), Opaque),
+ fromBool(getOptionBool("showlistbackground", false), Opaque),
"npc_listbackground.xml")),
mSkinContainer(new Container(this)),
mSkinScrollArea(new ScrollArea(this, mSkinContainer,
- fromBool(getOptionBool("showlistbackground"), Opaque),
+ fromBool(getOptionBool("showlistbackground", false), Opaque),
"npc_listbackground.xml")),
mItemLinkHandler(new ItemLinkHandler),
mTextField(new TextField(this, std::string(), LoseFocusOnTab_true,
@@ -141,7 +141,7 @@ NpcDialog::NpcDialog(const BeingId npcId) :
mItemContainer(new ItemContainer(this, mInventory,
10000, ShowEmptyRows_true, ForceQuantity_false)),
mItemScrollArea(new ScrollArea(this, mItemContainer,
- fromBool(getOptionBool("showitemsbackground"), Opaque),
+ fromBool(getOptionBool("showitemsbackground", false), Opaque),
"npc_listbackground.xml")),
mInputState(NpcInputState::NONE),
mActionState(NpcActionState::WAIT),
@@ -166,7 +166,7 @@ NpcDialog::NpcDialog(const BeingId npcId) :
setMinWidth(200);
setMinHeight(150);
- setDefaultSize(300, 578, ImagePosition::LOWER_LEFT);
+ setDefaultSize(300, 578, ImagePosition::LOWER_LEFT, 0, 0);
mPlayerBox->setWidth(70);
mPlayerBox->setHeight(100);