diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-05-23 01:27:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-05-23 01:27:28 +0300 |
commit | b829d239006538b2e669f4aab191ffa5ad37af68 (patch) | |
tree | a492be3847f3e3b0704b60909313cfe55dba7ca5 /src/gui/widgets/emoteshortcutcontainer.cpp | |
parent | 70bf45e429a649f59484968d0484a4326ed1a3e9 (diff) | |
download | manaverse-b829d239006538b2e669f4aab191ffa5ad37af68.tar.gz manaverse-b829d239006538b2e669f4aab191ffa5ad37af68.tar.bz2 manaverse-b829d239006538b2e669f4aab191ffa5ad37af68.tar.xz manaverse-b829d239006538b2e669f4aab191ffa5ad37af68.zip |
Add skin offsets for images and text in shortcut containers.
Diffstat (limited to 'src/gui/widgets/emoteshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/emoteshortcutcontainer.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/widgets/emoteshortcutcontainer.cpp b/src/gui/widgets/emoteshortcutcontainer.cpp index caa9150c1..ad597ee60 100644 --- a/src/gui/widgets/emoteshortcutcontainer.cpp +++ b/src/gui/widgets/emoteshortcutcontainer.cpp @@ -111,8 +111,8 @@ void EmoteShortcutContainer::draw(Graphics *restrict graphics) restrict2 if (sprite != nullptr) { sprite->draw(graphics, - (i % mGridWidth) * mBoxWidth + 2, - (i / mGridWidth) * mBoxHeight + 10); + (i % mGridWidth) * mBoxWidth + mImageOffsetX, + (i / mGridWidth) * mBoxHeight + mImageOffsetY); } } } @@ -129,7 +129,8 @@ void EmoteShortcutContainer::draw(Graphics *restrict graphics) restrict2 mForegroundColor, mForegroundColor2, key, - emoteX + 2, emoteY + 2); + emoteX + mTextOffsetX, + emoteY + mTextOffsetY); } BLOCK_END("EmoteShortcutContainer::draw") @@ -163,8 +164,8 @@ void EmoteShortcutContainer::safeDraw(Graphics *restrict graphics) restrict2 if (sprite != nullptr) { sprite->draw(graphics, - (i % mGridWidth) * mBoxWidth + 2, - (i / mGridWidth) * mBoxHeight + 10); + (i % mGridWidth) * mBoxWidth + mImageOffsetX, + (i / mGridWidth) * mBoxHeight + mImageOffsetY); } } } @@ -181,7 +182,8 @@ void EmoteShortcutContainer::safeDraw(Graphics *restrict graphics) restrict2 mForegroundColor, mForegroundColor2, key, - emoteX + 2, emoteY + 2); + emoteX + mTextOffsetX, + emoteY + mTextOffsetY); } BLOCK_END("EmoteShortcutContainer::draw") |