summaryrefslogtreecommitdiff
path: root/testxml/testxml.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-27 14:21:34 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-27 14:21:34 +0300
commitfeda89180d09c8d6f8e22f83980dc5083b468fc1 (patch)
tree8b7581d06b6a058a5039698b992832e7af3f0ea6 /testxml/testxml.py
parentea02eaa84a39ce19eacb20a4e270c16a64bd7bef (diff)
downloadtools-feda89180d09c8d6f8e22f83980dc5083b468fc1.tar.gz
tools-feda89180d09c8d6f8e22f83980dc5083b468fc1.tar.bz2
tools-feda89180d09c8d6f8e22f83980dc5083b468fc1.tar.xz
tools-feda89180d09c8d6f8e22f83980dc5083b468fc1.zip
testxml: add item attributes drawBefore, drawAfter
Diffstat (limited to 'testxml/testxml.py')
-rwxr-xr-xtestxml/testxml.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 0a92267..b7bde6f 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -593,7 +593,7 @@ def testSpriteAction(file, name, action, numframes, iserr):
if lastIndex1 == i1 and lastIndex2 == i2 and offsetX == lastOffsetX \
and offsetY == lastOffsetY:
- showMsgSprite(file, "duplicate sequence animation for. May be need use repeat attribue? start=" \
+ showMsgSprite(file, "duplicate sequence animation. May be need use repeat attribue? for start=" \
+ str(i1) + ", end=" + str(i2) + " action: " + \
name + ", direction: " + direction, False)
else:
@@ -839,6 +839,21 @@ def testItems(fileName, imgDir):
except:
missile = ""
+ try:
+ drawBefore = node.attributes["drawBefore"].value
+ except:
+ drawBefore = ""
+
+ try:
+ drawAfter = node.attributes["drawAfter"].value
+ except:
+ drawAfter = ""
+
+ try:
+ drawPriority = int(node.attributes["drawPriority"].value)
+ except:
+ drawPriority = 0
+
if type == "hairsprite":
if idI >= 0:
@@ -922,7 +937,12 @@ def testItems(fileName, imgDir):
testImageFile(imgDir + floor, fullPath, 0, "", True)
testItemReplace(id, node, "replace")
-
+ if drawBefore != "":
+ checkSpriteName(id, drawBefore)
+ if drawAfter != "":
+ checkSpriteName(id, drawAfter)
+
+
if type != "usable" and type != "unusable" and type != "generic" \
and type != "equip-necklace" and type != "equip-1hand" \
and type != "equip-2hand" and type != "equip-ammo" \