From 344efb2009b8c6d329a6d19dd45ed49076252710 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Aug 2017 00:38:31 +0300 Subject: Add into skill context menu for add shortcut. Also add chat command for add skill shortcut by skill id into free slot. --- src/gui/widgets/skillrectanglelistbox.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gui/widgets/skillrectanglelistbox.h') 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()); } } } -- cgit v1.2.3-70-g09d2