summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-02 23:39:12 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-03 01:01:11 +0300
commit20f5a9d3754bd598f091ae7e66fa0294800f9b30 (patch)
tree84832f8a517a98c00c52e7c7b760778edec66e36 /src/gui/windows/skilldialog.cpp
parentdaa922db12d8387fefa0952dc06697614de0175f (diff)
downloadplus-20f5a9d3754bd598f091ae7e66fa0294800f9b30.tar.gz
plus-20f5a9d3754bd598f091ae7e66fa0294800f9b30.tar.bz2
plus-20f5a9d3754bd598f091ae7e66fa0294800f9b30.tar.xz
plus-20f5a9d3754bd598f091ae7e66fa0294800f9b30.zip
Add skill option for allow/prevent adding skill to auto skills shortcuts tab.
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 2305cd58b..737fdfdf3 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -253,7 +253,8 @@ void SkillDialog::update()
if (info->modifiable == Modifiable_true)
info->update();
if (info->visible == Visible_false ||
- idx >= SHORTCUT_ITEMS)
+ idx >= SHORTCUT_ITEMS ||
+ !info->data->autoTab)
{
continue;
}
@@ -598,6 +599,8 @@ void SkillDialog::loadSkillData(XmlNodeConstPtr node,
node, "dstEffectId", -1);
data->castingGroundEffectId = XML::getProperty(
node, "castingGroundEffectId", -1);
+ data->autoTab = XML::getBoolProperty(
+ node, "autoTab", true);
skill->addData(level, data);
}