summaryrefslogtreecommitdiff
path: root/src/textparticle.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/textparticle.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/textparticle.h')
-rw-r--r--src/textparticle.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/textparticle.h b/src/textparticle.h
index d72df138..8b7d3e01 100644
--- a/src/textparticle.h
+++ b/src/textparticle.h
@@ -32,7 +32,7 @@ class TextParticle : public Particle
* Constructor.
*/
TextParticle(Map *map, const std::string &text,
- int colorR, int colorG, int colorB,
+ const gcn::Color* color,
gcn::Font *font, bool outline = false);
/**
@@ -47,9 +47,8 @@ class TextParticle : public Particle
private:
std::string mText; /**< Text of the particle. */
gcn::Font *mTextFont; /**< Font used for drawing the text. */
- int mColorR, mColorG, mColorB; /**< Color used for drawing the text. */
- bool mOutline; /**< Make the text readable - draw it the way
- a Text is usually drawn: with outline */
+ const gcn::Color* mColor; /**< Color used for drawing the text. */
+ bool mOutline; /**< Make the text better readable */
};
#endif