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/rotationalparticle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rotationalparticle.cpp') diff --git a/src/rotationalparticle.cpp b/src/rotationalparticle.cpp index 6c414cdb..e1d4824c 100644 --- a/src/rotationalparticle.cpp +++ b/src/rotationalparticle.cpp @@ -31,9 +31,10 @@ RotationalParticle::RotationalParticle(Map *map, Animation *animation): { } -RotationalParticle::RotationalParticle(Map *map, xmlNodePtr animationNode): +RotationalParticle::RotationalParticle(Map *map, xmlNodePtr animationNode, + const std::string& dyePalettes): ImageParticle(map, 0), - mAnimation(new SimpleAnimation(animationNode)) + mAnimation(new SimpleAnimation(animationNode, dyePalettes)) { } -- cgit v1.2.3-70-g09d2