summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/skillinfo.cpp3
-rw-r--r--src/gui/widgets/skillinfo.h1
-rw-r--r--src/gui/windows/skilldialog.cpp2
3 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/skillinfo.cpp b/src/gui/widgets/skillinfo.cpp
index 92d753c4d..5e64103a9 100644
--- a/src/gui/widgets/skillinfo.cpp
+++ b/src/gui/widgets/skillinfo.cpp
@@ -55,7 +55,8 @@ SkillInfo::SkillInfo() :
owner(SkillOwner::Player),
modifiable(Modifiable_false),
visible(Visible_false),
- alwaysVisible(Visible_false)
+ alwaysVisible(Visible_false),
+ useTextParameter(false)
{
dataMap[0] = new SkillData();
data = dataMap[0];
diff --git a/src/gui/widgets/skillinfo.h b/src/gui/widgets/skillinfo.h
index f0e356a58..7b8faa7e4 100644
--- a/src/gui/widgets/skillinfo.h
+++ b/src/gui/widgets/skillinfo.h
@@ -67,6 +67,7 @@ struct SkillInfo final
Modifiable modifiable;
Visible visible;
Visible alwaysVisible;
+ bool useTextParameter;
SkillInfo();
A_DELETE_COPY(SkillInfo)
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 091c6c1d9..3567a23bb 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -330,6 +330,8 @@ void SkillDialog::loadXmlFile(const std::string &fileName)
node, "castingSrcEffectId", -1);
skill->castingDstEffectId = XML::getProperty(
node, "castingDstEffectId", -1);
+ skill->useTextParameter = XML::getBoolProperty(
+ node, "useTextParameter", false);
skill->visible = skill->alwaysVisible;
model->addSkill(skill);
mSkills[id] = skill;