summaryrefslogtreecommitdiff
path: root/src/gui/equipment.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-02-25 18:09:30 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-02-25 18:09:30 +0000
commitd855488fdc9830c00ed3ce71532cfd52316988f1 (patch)
treea241ce6d0da88148e9b9024ec8adbe16148aff0f /src/gui/equipment.cpp
parent7369c775464aa9eae7a98bb935442b2fa2992f8e (diff)
downloadmana-d855488fdc9830c00ed3ce71532cfd52316988f1.tar.gz
mana-d855488fdc9830c00ed3ce71532cfd52316988f1.tar.bz2
mana-d855488fdc9830c00ed3ce71532cfd52316988f1.tar.xz
mana-d855488fdc9830c00ed3ce71532cfd52316988f1.zip
Fixing equipment and shops according to the new server script
Diffstat (limited to 'src/gui/equipment.cpp')
-rw-r--r--src/gui/equipment.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/equipment.cpp b/src/gui/equipment.cpp
index ccc4d403..c7507475 100644
--- a/src/gui/equipment.cpp
+++ b/src/gui/equipment.cpp
@@ -29,7 +29,7 @@
EquipmentWindow::EquipmentWindow():
Window("Equipment")
{
- setSize(70, 200);
+ setSize(60, 200);
setPosition(40, 40);
ResourceManager *resman = ResourceManager::getInstance();
@@ -54,11 +54,13 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
// Draw window graphics
Window::draw(graphics);
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < 8; i++) {
if (equipments[i] > 0) {
itemset->spriteset[equipments[i] - 501]->draw(screen,
- x + 20, y + 24 * i);
+ x + 22, y + 24 * i + 20);
}
+ graphics->setColor(gcn::Color(0, 0, 0));
+ graphics->drawRectangle(gcn::Rectangle(22, 24 * i + 20, 20, 20));
}
}