diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-12 19:37:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-12 19:37:58 +0300 |
commit | 02f3db43e3cdf991f61778083c955ec7dadff446 (patch) | |
tree | 3a9eece747ab4cd42cc66796e88e053c84c2ac4e /src | |
parent | 388f348acf3aeb954dae3160efeb6a8cd5fe6e4a (diff) | |
download | manaverse-02f3db43e3cdf991f61778083c955ec7dadff446.tar.gz manaverse-02f3db43e3cdf991f61778083c955ec7dadff446.tar.bz2 manaverse-02f3db43e3cdf991f61778083c955ec7dadff446.tar.xz manaverse-02f3db43e3cdf991f61778083c955ec7dadff446.zip |
Add skill xml flag useTextParameter.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/skillinfo.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/skillinfo.h | 1 | ||||
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 2 |
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; |