diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
commit | e3b9d60938b1299f2f66e68ff291060654c58d66 (patch) | |
tree | 28425cf579903d6735faa801a6968b56abdc7230 /src/gui/equipmentwindow.cpp | |
parent | 10c8e7da87de2219fad19fd899e97257164e4830 (diff) | |
download | manaverse-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.gz manaverse-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.bz2 manaverse-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.xz manaverse-e3b9d60938b1299f2f66e68ff291060654c58d66.zip |
Move some hardcoded paddings to themes.
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp index 6a0397a7e..417dca680 100644 --- a/src/gui/equipmentwindow.cpp +++ b/src/gui/equipmentwindow.cpp @@ -99,8 +99,9 @@ EquipmentWindow::EquipmentWindow(Equipment *equipment, Being *being, mUnequip = new Button(_("Unequip"), "unequip", this); const gcn::Rectangle &area = getChildrenArea(); - mUnequip->setPosition(area.width - mUnequip->getWidth() - 5, - area.height - mUnequip->getHeight() - 5); + const int buttonPadding = getOption("buttonPadding", 5); + mUnequip->setPosition(area.width - mUnequip->getWidth() - buttonPadding, + area.height - mUnequip->getHeight() - buttonPadding); mUnequip->setEnabled(false); add(mPlayerBox); |