From 81dcbc085f750fa8dfe6401b774c1b930e95e5ca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Jul 2016 18:24:19 +0300 Subject: Add new parameter into paths.xml for default skill casting animation. New parameter: skillCastingAnimation --- src/defaults.cpp | 1 + src/gui/windows/skilldialog.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/defaults.cpp b/src/defaults.cpp index cacd7042f..327a4db73 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -644,6 +644,7 @@ DefaultsData* getPathsDefaults() AddDEF("gmCharCommandSymbol", "#"); AddDEF("linkCommandSymbol", "="); AddDEF("emptyAtlasName", "ignored"); + AddDEF("skillCastingAnimation", ""); AddDEF("palettesDir", ""); AddDEF("defaultPaletteFile", "palette.gpl"); diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index f42ce92ff..7a34ab4f7 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -391,7 +391,9 @@ void SkillDialog::loadXmlFile(const std::string &fileName, data->particle = XML::getProperty( node, "particle", ""); data->castingAnimation = XML::getProperty( - node, "castingAnimation", ""); + node, + "castingAnimation", + paths.getStringValue("skillCastingAnimation")); data->soundHit.sound = XML::getProperty( node, "soundHit", ""); -- cgit v1.2.3-70-g09d2