summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emoteshortcutcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/emoteshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/emoteshortcutcontainer.cpp14
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")