Mercurial > fife-parpg
diff engine/extensions/serializers/xmlanimation.py @ 129:9a1529f9625e
* Indentation patch by GreyGhost
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 07 Aug 2008 15:46:46 +0000 |
parents | 4a0efb7baf70 |
children | 3fddb45c0304 |
line wrap: on
line diff
--- a/engine/extensions/serializers/xmlanimation.py Wed Aug 06 22:35:27 2008 +0000 +++ b/engine/extensions/serializers/xmlanimation.py Thu Aug 07 15:46:46 2008 +0000 @@ -9,7 +9,7 @@ self.thisown = 0 self.filename = '' self.node = None - + def loadResource(self, location): self.filename = location.getFilename() return self.do_load_resource() @@ -19,17 +19,17 @@ f.thisown = 1 tree = ET.parse(f) self.node = tree.getroot() - + animation = fife.Animation() common_frame_delay = int(self.node.get('delay', 0)) x_offset = int(self.node.get('x_offset', 0)) y_offset = int(self.node.get('y_offset', 0)) animation.setActionFrame(int(self.node.get('action', 0))) - + frames = self.node.findall('frame') if not frames: raise InvalidFormat('animation without <frame>s') - + for frame in frames: source = frame.get('source') if not source: