diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-15 20:14:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-15 20:14:43 +0300 |
commit | e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a (patch) | |
tree | 496a406c4963a6c4ee1f69e5307ce4da8881e3c8 /src/gui | |
parent | 75d94c3c01eaa828d8e96767b06e3d0c3019ffa3 (diff) | |
download | manaverse-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.tar.gz manaverse-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.tar.bz2 manaverse-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.tar.xz manaverse-e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a.zip |
Show selected skill cast offset in skill popup.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/skillpopup.cpp | 7 |
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"), |