diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:03:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:33:53 +0300 |
commit | 4520aa5631f5dfa9d941231a11c2ba782f456dd0 (patch) | |
tree | a01027e50987230d63aaeeccc65c074c3a6dca7c /src/gui/widgets/itemshortcutcontainer.cpp | |
parent | 99fc034012a3c97805014d578c8bb910beabfbc5 (diff) | |
download | manaverse-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.gz manaverse-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.bz2 manaverse-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.xz manaverse-4520aa5631f5dfa9d941231a11c2ba782f456dd0.zip |
Allow different skill images/names etc for each skill level.
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemshortcutcontainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index 520a92ea6..2e3d60d65 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -200,7 +200,7 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics) itemId - SKILL_MIN_ID); if (skill) { - Image *const image = skill->data.icon; + Image *const image = skill->data->icon; if (image) { @@ -208,7 +208,7 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics) g->drawImage(image, itemX, itemY); } - g->drawText(skill->data.shortName, itemX + 2, + g->drawText(skill->data->shortName, itemX + 2, itemY + mBoxHeight / 2, gcn::Graphics::LEFT); } } |