diff options
author | Ira Rice <irarice@gmail.com> | 2008-11-25 18:43:28 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-11-25 18:43:28 +0000 |
commit | 886a5d4803e277b053014ae6b5c1c347f7756d48 (patch) | |
tree | e24d94a1652470c27a2dbe26eed7a1923d43adb3 /src/gui/itemshortcutcontainer.cpp | |
parent | d5e30d8f72184241034aa797471c31a5bcbaa095 (diff) | |
download | mana-886a5d4803e277b053014ae6b5c1c347f7756d48.tar.gz mana-886a5d4803e277b053014ae6b5c1c347f7756d48.tar.bz2 mana-886a5d4803e277b053014ae6b5c1c347f7756d48.tar.xz mana-886a5d4803e277b053014ae6b5c1c347f7756d48.zip |
Miscellaneous TMW change commits. Missed these changes before because of
a confusion on git.
Diffstat (limited to 'src/gui/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/itemshortcutcontainer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index 86a53aca..f8a0959a 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -96,11 +96,13 @@ ItemShortcutContainer::draw(gcn::Graphics *graphics) player_node->getInventory()->findItem(itemShortcut->getItem(i)); if (item) { // Draw item icon. + const std::string label = + item->isEquipped() ? "Eq." : toString(item->getQuantity()); Image* image = item->getImage(); if (image) { g->drawImage(image, itemX, itemY); g->drawText( - toString(item->getQuantity()), + label, itemX + mBoxWidth / 2, itemY + mBoxHeight - 14, gcn::Graphics::CENTER); |