summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-27 19:23:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-27 19:23:52 +0300
commita199f1aa431f872bc13c5df5a9afad0e52a1ee1d (patch)
treed98bc9d256f98714f0d9ebf635e7043900a10d58 /src/resources/spritedef.cpp
parent3d24b9f024dc9114165530aa58dc4a7832ca2753 (diff)
downloadplus-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.cpp4
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);