diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-10 12:43:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-10 12:55:30 +0300 |
commit | ccbedfd47f315727f445ac6f01daa85592e302ec (patch) | |
tree | cf55c19e17754e656640c96ed516a75702fa9ca1 /src/imageparticle.h | |
parent | b530990930638dfe2d84b297af47e80bfa80a19b (diff) | |
download | plus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.gz plus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.bz2 plus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.xz plus-ccbedfd47f315727f445ac6f01daa85592e302ec.zip |
Fix alpha property for image particles.
Diffstat (limited to 'src/imageparticle.h')
-rw-r--r-- | src/imageparticle.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imageparticle.h b/src/imageparticle.h index d4f819660..ca5aadd1b 100644 --- a/src/imageparticle.h +++ b/src/imageparticle.h @@ -57,6 +57,9 @@ class ImageParticle : public Particle virtual bool draw(Graphics *graphics, int offsetX, int offsetY) const override; + virtual void setAlpha(const float alpha) override + { mAlpha = alpha; } + static std::map<std::string, int> imageParticleCountByName; protected: Image *mImage; /**< The image used for this particle. */ |