From ba5b70974c5dfa0be3105e72a0a012455b28e7a9 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 22 Jun 2011 21:47:53 +0200 Subject: Made possible to separate the dye colors and channels for particle effects. It is now possible to write, for instance: my-particle-file.xml|#cbcb78,345678 and in my-particle-file.xml: ... ... This will permit the use (and reuse) of generic particle files. --- src/animationparticle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/animationparticle.cpp') diff --git a/src/animationparticle.cpp b/src/animationparticle.cpp index 392dc4f4..eb97637c 100644 --- a/src/animationparticle.cpp +++ b/src/animationparticle.cpp @@ -30,9 +30,10 @@ AnimationParticle::AnimationParticle(Map *map, Animation *animation): { } -AnimationParticle::AnimationParticle(Map *map, xmlNodePtr animationNode): +AnimationParticle::AnimationParticle(Map *map, xmlNodePtr animationNode, + const std::string& dyePalettes): ImageParticle(map, 0), - mAnimation(new SimpleAnimation(animationNode)) + mAnimation(new SimpleAnimation(animationNode, dyePalettes)) { } -- cgit v1.2.3-60-g2f50