diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-27 19:23:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-27 19:23:52 +0300 |
commit | a199f1aa431f872bc13c5df5a9afad0e52a1ee1d (patch) | |
tree | d98bc9d256f98714f0d9ebf635e7043900a10d58 /src/resources/spritedef.cpp | |
parent | 3d24b9f024dc9114165530aa58dc4a7832ca2753 (diff) | |
download | plus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.gz plus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.bz2 plus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.xz plus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.zip |
Add pause animation tag.
Example: <pause delay="10"/>
Diffstat (limited to 'src/resources/spritedef.cpp')
-rw-r--r-- | src/resources/spritedef.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index 02b46f1cf..a4ebc6f7e 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -340,6 +340,10 @@ void SpriteDef::loadAnimation(XmlNodePtr animationNode, repeat --; } } + else if (xmlNameEqual(frameNode, "pause")) + { + animation->addPause(delay, rand); + } else if (xmlNameEqual(frameNode, "end")) { animation->addTerminator(rand); |