diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-15 20:53:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-15 20:53:32 +0300 |
commit | f2b5d38744860360b4b592920c4732aea839ab75 (patch) | |
tree | 861f05e56f628d3fc3554ada44bfb98b1803ab01 /src/gui/widgets/skilllistbox.h | |
parent | e5cdd67b71b9d26d5d8a4182a64379fe8a8b4f7a (diff) | |
download | mv-f2b5d38744860360b4b592920c4732aea839ab75.tar.gz mv-f2b5d38744860360b4b592920c4732aea839ab75.tar.bz2 mv-f2b5d38744860360b4b592920c4732aea839ab75.tar.xz mv-f2b5d38744860360b4b592920c4732aea839ab75.zip |
Copy skill cast offset to shortcuts.
Also show offsets in skill popup in shortcuts.
Diffstat (limited to 'src/gui/widgets/skilllistbox.h')
-rw-r--r-- | src/gui/widgets/skilllistbox.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h index 91023e4dd..720d51005 100644 --- a/src/gui/widgets/skilllistbox.h +++ b/src/gui/widgets/skilllistbox.h @@ -202,7 +202,9 @@ class SkillListBox final : public ListBox return; skillPopup->show(skill, skill->customSelectedLevel, - skill->customCastType); + skill->customCastType, + skill->customOffsetX, + skill->customOffsetY); skillPopup->position(viewport->mMouseX, viewport->mMouseY); } @@ -221,9 +223,10 @@ class SkillListBox final : public ListBox return; dragDrop.dragSkill(skill, DragDropSource::Skills); dragDrop.setItem(skill->id + SKILL_MIN_ID); - // +++ using only cast type in data - dragDrop.setItemData(toString(CAST_S32( - skill->customCastType))); + dragDrop.setItemData(strprintf("%d %d %d", + CAST_S32(skill->customCastType), + skill->customOffsetX, + skill->customOffsetY)); } ListBox::mouseDragged(event); } |