From 4150f81fd2bd2de6251f0bdf05361922c63713e5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 May 2018 01:46:59 +0300 Subject: Add textOffsetY skin field into spell shortcut container. Before it used box/2 as offset. --- src/gui/widgets/spellshortcutcontainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index b2a80209e..5bc40f7bd 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -120,7 +120,7 @@ void SpellShortcutContainer::draw(Graphics *const graphics) mForegroundColor2, spell->getSymbol(), itemX + mTextOffsetX, - itemY + mBoxHeight / 2); + itemY + mTextOffsetY); } } @@ -183,7 +183,7 @@ void SpellShortcutContainer::safeDraw(Graphics *const graphics) mForegroundColor2, spell->getSymbol(), itemX + mTextOffsetX, - itemY + mBoxHeight / 2); + itemY + mTextOffsetY); } } -- cgit v1.2.3-60-g2f50