summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
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/windows/skilldialog.cpp
parentfa4c5d79b04a319550996c48448cd799fe7fde56 (diff)
downloadmanaverse-344efb2009b8c6d329a6d19dd45ed49076252710.tar.gz
manaverse-344efb2009b8c6d329a6d19dd45ed49076252710.tar.bz2
manaverse-344efb2009b8c6d329a6d19dd45ed49076252710.tar.xz
manaverse-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/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index f48baaf83..b4e277b98 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -268,10 +268,8 @@ void SkillDialog::update()
info->id + SKILL_MIN_ID,
fromInt(info->customSelectedLevel, ItemColor));
- shortcuts->setItemData(idx, strprintf("%d %d %d",
- CAST_S32(info->customCastType),
- info->customOffsetX,
- info->customOffsetY));
+ shortcuts->setItemData(idx,
+ info->toDataStr());
idx ++;
}
}