From e9fb9da5bf17d3402781eb5205be7d2f794887ee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Sep 2016 19:07:25 +0300 Subject: Add strong typed bool Opaque. --- src/gui/windows/npcdialog.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/gui/windows/npcdialog.cpp') diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index ccb52f8c4..00ba8061d 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -99,19 +99,22 @@ NpcDialog::NpcDialog(const BeingId npcId) : mNpcId(npcId), mDefaultInt(0), mDefaultString(), - mTextBox(new BrowserBox(this, BrowserBox::AUTO_WRAP, true, + mTextBox(new BrowserBox(this, BrowserBox::AUTO_WRAP, Opaque_true, "browserbox.xml")), mScrollArea(new ScrollArea(this, mTextBox, - getOptionBool("showtextbackground"), "npc_textbackground.xml")), + fromBool(getOptionBool("showtextbackground"), Opaque), + "npc_textbackground.xml")), mText(), mNewText(), mItemList(CREATEWIDGETR(ExtendedListBox, this, this, "extendedlistbox.xml")), mListScrollArea(new ScrollArea(this, mItemList, - getOptionBool("showlistbackground"), "npc_listbackground.xml")), + fromBool(getOptionBool("showlistbackground"), Opaque), + "npc_listbackground.xml")), mSkinContainer(new Container(this)), mSkinScrollArea(new ScrollArea(this, mSkinContainer, - getOptionBool("showlistbackground"), "npc_listbackground.xml")), + fromBool(getOptionBool("showlistbackground"), Opaque), + "npc_listbackground.xml")), mItems(), mImages(), mItemLinkHandler(new ItemLinkHandler), @@ -135,7 +138,8 @@ NpcDialog::NpcDialog(const BeingId npcId) : mItemContainer(new ItemContainer(this, mInventory, 10000, ShowEmptyRows_true)), mItemScrollArea(new ScrollArea(this, mItemContainer, - getOptionBool("showitemsbackground"), "npc_listbackground.xml")), + fromBool(getOptionBool("showitemsbackground"), Opaque), + "npc_listbackground.xml")), mInputState(NPC_INPUT_NONE), mActionState(NPC_ACTION_WAIT), mSkinControls(), @@ -165,7 +169,7 @@ NpcDialog::NpcDialog(const BeingId npcId) : mPlayerBox->setHeight(100); // Setup output text box - mTextBox->setOpaque(false); + mTextBox->setOpaque(Opaque_false); mTextBox->setMaxRow(config.getIntValue("ChatLogLength")); mTextBox->setLinkHandler(mItemLinkHandler); mTextBox->setProcessVars(true); @@ -1289,9 +1293,9 @@ void NpcDialog::createSkinControls() const NpcTextInfo *const info = *it; BrowserBox *box = new BrowserBox(this, BrowserBox::AUTO_WRAP, - true, + Opaque_true, "browserbox.xml"); - box->setOpaque(false); + box->setOpaque(Opaque_false); box->setMaxRow(config.getIntValue("ChatLogLength")); box->setLinkHandler(mItemLinkHandler); box->setProcessVars(true); -- cgit v1.2.3-60-g2f50