From 02f3db43e3cdf991f61778083c955ec7dadff446 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Nov 2015 19:37:58 +0300 Subject: Add skill xml flag useTextParameter. --- src/gui/widgets/skillinfo.cpp | 3 ++- src/gui/widgets/skillinfo.h | 1 + src/gui/windows/skilldialog.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2