summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
authorMajin Sniper <majinsniper@gmx.de>2009-03-12 22:42:42 +0100
committerJared Adams <jaxad0127@gmail.com>2009-03-12 19:38:55 -0600
commit3b1fbbe072e4da86be4c8f8f22655d04565379d2 (patch)
tree9bae46138230c01fd2998395e146556f9a9db05b /src/particle.h
parentb9191530c81595b0ad3d2faa6c4d21d75a720c29 (diff)
downloadmana-client-3b1fbbe072e4da86be4c8f8f22655d04565379d2.tar.gz
mana-client-3b1fbbe072e4da86be4c8f8f22655d04565379d2.tar.bz2
mana-client-3b1fbbe072e4da86be4c8f8f22655d04565379d2.tar.xz
mana-client-3b1fbbe072e4da86be4c8f8f22655d04565379d2.zip
Make use of the new available colors
This patch lets all being derivatives use the palette to set their name's colors. Text Particle Effects all respect the new settings. Some widgets were updated to use the colors.
Diffstat (limited to 'src/particle.h')
-rw-r--r--src/particle.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/particle.h b/src/particle.h
index b4c80194..3584c4fc 100644
--- a/src/particle.h
+++ b/src/particle.h
@@ -105,19 +105,17 @@ class Particle : public Sprite
/**
* Creates a standalone text particle.
*/
- Particle *addTextSplashEffect(const std::string &text,
- int colorR, int colorG, int colorB,
- gcn::Font *font, int x, int y,
- bool outline = false);
+ Particle *addTextSplashEffect(const std::string &text, int x, int y,
+ const gcn::Color *color, gcn::Font *font,
+ bool outline = false);
/**
* Creates a standalone text particle.
*/
Particle *addTextRiseFadeOutEffect(const std::string &text,
- gcn::Font *font,
- int x, int y, int colorR = 255,
- int colorG = 255, int colorB = 255,
- bool outline = false);
+ int x, int y, const gcn::Color *color, gcn::Font *font,
+ bool outline = false);
+
/**
* Adds an emitter to the particle.
*/