summaryrefslogtreecommitdiff
path: root/src/imageparticle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-10 12:43:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-10 12:55:30 +0300
commitccbedfd47f315727f445ac6f01daa85592e302ec (patch)
treecf55c19e17754e656640c96ed516a75702fa9ca1 /src/imageparticle.h
parentb530990930638dfe2d84b297af47e80bfa80a19b (diff)
downloadmanaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.gz
manaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.bz2
manaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.tar.xz
manaplus-ccbedfd47f315727f445ac6f01daa85592e302ec.zip
Fix alpha property for image particles.
Diffstat (limited to 'src/imageparticle.h')
-rw-r--r--src/imageparticle.h3
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. */