summaryrefslogtreecommitdiff
path: root/src/gui/widgets/virtshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-23 01:27:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-23 01:27:28 +0300
commitb829d239006538b2e669f4aab191ffa5ad37af68 (patch)
treea492be3847f3e3b0704b60909313cfe55dba7ca5 /src/gui/widgets/virtshortcutcontainer.cpp
parent70bf45e429a649f59484968d0484a4326ed1a3e9 (diff)
downloadmv-b829d239006538b2e669f4aab191ffa5ad37af68.tar.gz
mv-b829d239006538b2e669f4aab191ffa5ad37af68.tar.bz2
mv-b829d239006538b2e669f4aab191ffa5ad37af68.tar.xz
mv-b829d239006538b2e669f4aab191ffa5ad37af68.zip
Add skin offsets for images and text in shortcut containers.
Diffstat (limited to 'src/gui/widgets/virtshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/virtshortcutcontainer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/widgets/virtshortcutcontainer.cpp b/src/gui/widgets/virtshortcutcontainer.cpp
index cac320d54..e03d19872 100644
--- a/src/gui/widgets/virtshortcutcontainer.cpp
+++ b/src/gui/widgets/virtshortcutcontainer.cpp
@@ -123,7 +123,9 @@ void VirtShortcutContainer::draw(Graphics *const graphics)
caption = "Eq.";
image->setAlpha(1.0F);
- graphics->drawImage(image, itemX, itemY);
+ graphics->drawImage(image,
+ itemX + mImageOffsetX,
+ itemY + mImageOffsetY);
if (item->isEquipped() == Equipped_true)
{
font->drawString(graphics,
@@ -197,7 +199,9 @@ void VirtShortcutContainer::safeDraw(Graphics *const graphics)
caption = "Eq.";
image->setAlpha(1.0F);
- graphics->drawImage(image, itemX, itemY);
+ graphics->drawImage(image,
+ itemX + mImageOffsetX,
+ itemY + mImageOffsetY);
if (item->isEquipped() == Equipped_true)
{
font->drawString(graphics,