summaryrefslogtreecommitdiff
path: root/src/gui/widgets/skillrectanglelistbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-08 00:38:31 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-08 00:38:31 +0300
commit344efb2009b8c6d329a6d19dd45ed49076252710 (patch)
tree2e5c1a7d9484e1cc3bfedac7b03c7146be442896 /src/gui/widgets/skillrectanglelistbox.h
parentfa4c5d79b04a319550996c48448cd799fe7fde56 (diff)
downloadmanaplus-344efb2009b8c6d329a6d19dd45ed49076252710.tar.gz
manaplus-344efb2009b8c6d329a6d19dd45ed49076252710.tar.bz2
manaplus-344efb2009b8c6d329a6d19dd45ed49076252710.tar.xz
manaplus-344efb2009b8c6d329a6d19dd45ed49076252710.zip
Add into skill context menu for add shortcut.
Also add chat command for add skill shortcut by skill id into free slot.
Diffstat (limited to 'src/gui/widgets/skillrectanglelistbox.h')
-rw-r--r--src/gui/widgets/skillrectanglelistbox.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/widgets/skillrectanglelistbox.h b/src/gui/widgets/skillrectanglelistbox.h
index 88698de1c..a0775db3c 100644
--- a/src/gui/widgets/skillrectanglelistbox.h
+++ b/src/gui/widgets/skillrectanglelistbox.h
@@ -306,10 +306,7 @@ class SkillRectangleListBox final : public Widget,
return;
dragDrop.dragSkill(skill, DragDropSource::Skills);
dragDrop.setItem(skill->id + SKILL_MIN_ID);
- dragDrop.setItemData(strprintf("%d %d %d",
- CAST_S32(skill->customCastType),
- skill->customOffsetX,
- skill->customOffsetY));
+ dragDrop.setItemData(skill->toDataStr());
}
}
}