From 30ba8a737da8b1811397786106085f2c13167803 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Dec 2017 00:43:20 +0300 Subject: Remove default parameters from window. --- src/gui/windows/npcdialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/windows/npcdialog.cpp') 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); -- cgit v1.2.3-60-g2f50