summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-19 02:05:18 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-19 02:05:18 +0200
commit88ee2065234648712636c85470869a641eaef74c (patch)
tree744b4c54b9bb8817dd4f6cb59251f40e23ff6e24
parented05bebb574db6cff36a2a8bcd35c124258fa014 (diff)
downloadtools-88ee2065234648712636c85470869a641eaef74c.tar.gz
tools-88ee2065234648712636c85470869a641eaef74c.tar.bz2
tools-88ee2065234648712636c85470869a641eaef74c.tar.xz
tools-88ee2065234648712636c85470869a641eaef74c.zip
In testxml add option to allow looping death animation.
-rwxr-xr-xtestxml/testxml.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 1296216..e33d878 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -468,11 +468,16 @@ def testSpriteAction(file, name, action, numframes, iserr):
nc = nc + 2
if nc > 1:
try:
- delay = int(lastNode.attributes["delay"].value)
+ cont = int(lastNode.attributes["continue"].value)
except:
- delay = 0
- if delay > 0 and delay < 5000:
- showMsgSprite(file, "last frame\sequence in dead animation have to low limit. Need zero or >5000: " + name, iserr)
+ cont = 0;
+ if cont == 0:
+ try:
+ delay = int(lastNode.attributes["delay"].value)
+ except:
+ delay = 0
+ if delay > 0 and delay < 5000:
+ showMsgSprite(file, "last frame\sequence in dead animation have to low limit. Need zero or >5000: " + name, False)