summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-15 20:14:43 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-15 20:14:43 +0300
commite5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a (patch)
tree496a406c4963a6c4ee1f69e5307ce4da8881e3c8 /src/gui
parent75d94c3c01eaa828d8e96767b06e3d0c3019ffa3 (diff)
downloadmanaplus-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.tar.gz
manaplus-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.tar.bz2
manaplus-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.tar.xz
manaplus-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.zip
Show selected skill cast offset in skill popup.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/skillpopup.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/popups/skillpopup.cpp b/src/gui/popups/skillpopup.cpp
index 0fd8e2584..fa757b844 100644
--- a/src/gui/popups/skillpopup.cpp
+++ b/src/gui/popups/skillpopup.cpp
@@ -168,6 +168,13 @@ void SkillPopup::show(const SkillInfo *const skill,
castStr = _("Self position");
break;
}
+ if (skill->customOffsetX != 0 ||
+ skill->customOffsetY != 0)
+ {
+ castStr.append(strprintf(" (%+d,%+d)",
+ skill->customOffsetX,
+ skill->customOffsetY));
+ }
mSkillCastType->setTextWrapped(strprintf(
// TRANSLATORS: skill cast type
_("Cast type: %s"),