diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
commit | aa7119314e1a33d908b98906d30be94eb116d02d (patch) | |
tree | a99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/windows/npcdialog.cpp | |
parent | 0424b1383e3c07192b4493d5210b4384b5a69a75 (diff) | |
download | manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2 manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.zip |
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index 74c86211c..0abce52ca 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -124,18 +124,18 @@ NpcDialog::NpcDialog(const BeingId npcId) : nullptr, std::string(), false)), mIntField(new IntTextField(this, 0, 0, 0, Enable_true, 0)), // TRANSLATORS: npc dialog button - mPlusButton(new Button(this, _("+"), "inc", this)), + mPlusButton(new Button(this, _("+"), "inc", BUTTON_SKIN, this)), // TRANSLATORS: npc dialog button - mMinusButton(new Button(this, _("-"), "dec", this)), + mMinusButton(new Button(this, _("-"), "dec", BUTTON_SKIN, this)), // TRANSLATORS: npc dialog button - mClearButton(new Button(this, _("Clear"), "clear", this)), - mButton(new Button(this, "", "ok", this)), + mClearButton(new Button(this, _("Clear"), "clear", BUTTON_SKIN, this)), + mButton(new Button(this, "", "ok", BUTTON_SKIN, this)), // TRANSLATORS: npc dialog button - mButton2(new Button(this, _("Close"), "close", this)), + mButton2(new Button(this, _("Close"), "close", BUTTON_SKIN, this)), // TRANSLATORS: npc dialog button - mButton3(new Button(this, _("Add"), "add", this)), + mButton3(new Button(this, _("Add"), "add", BUTTON_SKIN, this)), // TRANSLATORS: npc dialog button - mResetButton(new Button(this, _("Reset"), "reset", this)), + mResetButton(new Button(this, _("Reset"), "reset", BUTTON_SKIN, this)), mInventory(new Inventory(InventoryType::Npc, 1)), mComplexInventory(new ComplexInventory(InventoryType::Craft, 1)), mItemContainer(new ItemContainer(this, mInventory, @@ -1323,7 +1323,8 @@ void NpcDialog::createSkinControls() mDialogInfo->menu.buttons) { const NpcButtonInfo *const info = *it; - Button *const button = new Button(this); + Button *const button = new Button(this, + BUTTON_SKIN); button->setCaption(info->name); button->setActionEventId("skin_" + info->value); button->addActionListener(this); |