diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-11 02:55:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-11 02:55:31 +0300 |
commit | 7f905e347c1312b4e64e466f845dc5edb5fc4867 (patch) | |
tree | 41563de9555a4ce2bddd39a548d371837da49f5f /src/gui/widgets/itemshortcutcontainer.cpp | |
parent | 501f9934731114562c3659918d9d7b39625eb7b5 (diff) | |
download | mv-7f905e347c1312b4e64e466f845dc5edb5fc4867.tar.gz mv-7f905e347c1312b4e64e466f845dc5edb5fc4867.tar.bz2 mv-7f905e347c1312b4e64e466f845dc5edb5fc4867.tar.xz mv-7f905e347c1312b4e64e466f845dc5edb5fc4867.zip |
Fix use button in skills dialog if switching tabs.
Add drawing skill image in shortcuts bar.
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemshortcutcontainer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index 1c15ccf2b..381e3102d 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -191,6 +191,14 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics) SkillInfo *skill = skillDialog->getSkill(itemId - SKILL_MIN_ID); if (skill) { + Image* image = skill->icon; + + if (image) + { + image->setAlpha(1.0f); + g->drawImage(image, itemX, itemY); + } + g->drawText(skill->shortName, itemX + 2, itemY + mBoxHeight / 2, gcn::Graphics::LEFT); } |