diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-16 18:50:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:33:53 +0300 |
commit | 0fa3de24e2e6931a07cbc1fb3dadfff9091250cf (patch) | |
tree | cf8829ca7d273b2464f724308c2fd419f407cc61 /src/gui/widgets/itemshortcutcontainer.cpp | |
parent | ade168344165534061b8f184866e2808af7f5d48 (diff) | |
download | plus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.gz plus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.bz2 plus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.xz plus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.zip |
Separate in skills skill info and skill data for future usage.
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 c11d2a2e0..520a92ea6 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->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->shortName, itemX + 2, + g->drawText(skill->data.shortName, itemX + 2, itemY + mBoxHeight / 2, gcn::Graphics::LEFT); } } |