From a285bd7b3d888285095a295ab9e393560a69f30b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 May 2018 02:05:18 +0300 Subject: Use skin option textOffsetY in item shortcut container. --- src/gui/widgets/itemshortcutcontainer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp index 50155fa92..dcafa2233 100644 --- a/src/gui/widgets/itemshortcutcontainer.cpp +++ b/src/gui/widgets/itemshortcutcontainer.cpp @@ -206,7 +206,7 @@ void ItemShortcutContainer::draw(Graphics *const graphics) mForegroundColor, spell->getSymbol(), itemX + mTextOffsetX, - itemY + mBoxHeight / 2); + itemY + mTextOffsetY); } } else if (skillDialog != nullptr) @@ -231,7 +231,7 @@ void ItemShortcutContainer::draw(Graphics *const graphics) mForegroundColor, skill->data->shortName, itemX + mTextOffsetX, - itemY + mBoxHeight / 2); + itemY + mTextOffsetY); } } } @@ -353,7 +353,7 @@ void ItemShortcutContainer::safeDraw(Graphics *const graphics) mForegroundColor, spell->getSymbol(), itemX + mTextOffsetX, - itemY + mBoxHeight / 2); + itemY + mTextOffsetY); } } else if (skillDialog != nullptr) @@ -378,7 +378,7 @@ void ItemShortcutContainer::safeDraw(Graphics *const graphics) mForegroundColor, skill->data->shortName, itemX + mTextOffsetX, - itemY + mBoxHeight / 2); + itemY + mTextOffsetY); } } } -- cgit v1.2.3-70-g09d2