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 | |
parent | b530990930638dfe2d84b297af47e80bfa80a19b (diff) | |
download | manaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.gz manaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.bz2 manaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.xz manaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.zip |
Fix alpha property for image particles.
-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. */ |