void drawText(const std::string &text, int x, int y, gcn::Graphics::Alignment alignment, const gcn::Color &color, gcn::Font *font, bool outline=false, bool shadow=false, const std::optional< gcn::Color > &outlineColor={}, const std::optional< gcn::Color > &shadowColor={})
A particle spawned by a ParticleEmitter.
float getCurrentAlpha() const
Calculates the current alpha transparency taking current fade status into account.
bool mOutline
Make the text better readable.
gcn::Font * mTextFont
Font used for drawing the text.
const gcn::Color * mColor
Color used for drawing the text.
TextParticle(Map *map, const std::string &text, const gcn::Color *color, gcn::Font *font, bool outline=false)
bool draw(Graphics *graphics, int offsetX, int offsetY) const override
Draws the particle image.