diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-13 16:51:38 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-13 16:51:38 +0100 |
commit | 89c332adbcf584142d49f6829d5227614f2f0968 (patch) | |
tree | 1829f476608169d7df9402a01fd5de7b636838df /src/gui/itemshortcutcontainer.cpp | |
parent | a329eb2442bf21eb77ad3c544e8aec656dfb6493 (diff) | |
download | mana-89c332adbcf584142d49f6829d5227614f2f0968.tar.gz mana-89c332adbcf584142d49f6829d5227614f2f0968.tar.bz2 mana-89c332adbcf584142d49f6829d5227614f2f0968.tar.xz mana-89c332adbcf584142d49f6829d5227614f2f0968.zip |
Added ability to add equipment to the shurtcut bar
Patch by Nikos, with some improvements.
Conflicts:
NEWS
src/gui/itemcontainer.cpp
src/itemshortcut.cpp
(cherry picked from eAthena client, not functional here yet)
Diffstat (limited to 'src/gui/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/itemshortcutcontainer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index 76104e12..e0604c78 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -85,7 +85,7 @@ ItemShortcutContainer::draw(gcn::Graphics *graphics) // Draw item keyboard shortcut. const char *key = SDL_GetKeyName( - (SDLKey) keyboard.getKeyValue(keyboard.KEY_SHORTCUT_0+i)); + (SDLKey) keyboard.getKeyValue(keyboard.KEY_SHORTCUT_0 + i)); g->drawText(key, itemX + 2, itemY + 2, gcn::Graphics::LEFT); if (itemShortcut->getItem(i) < 0) @@ -96,9 +96,11 @@ ItemShortcutContainer::draw(gcn::Graphics *graphics) // Draw item icon. Image* image = item->getImage(); if (image) { + // TODO: Have label indicate equipped status + const std::string label = toString(item->getQuantity()); g->drawImage(image, itemX, itemY); g->drawText( - toString(item->getQuantity()), + label, itemX + mBoxWidth / 2, itemY + mBoxHeight - 14, gcn::Graphics::CENTER); |