summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r--src/gui/windows/npcdialog.cpp17
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);