summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorMajin Sniper <majinsniper@gmx.de>2009-03-12 22:42:42 +0100
committerIra Rice <irarice@gmail.com>2009-03-12 21:53:00 -0600
commitf0d5e3da15a308fcc962590330e7d8e39e8874b9 (patch)
treea0e7f61b1f6a2f2aee20549c9ac55a123ba3ccba /src/text.h
parent5207b4cbb462cfa962a6f566897a6affd92eef94 (diff)
downloadmana-client-f0d5e3da15a308fcc962590330e7d8e39e8874b9.tar.gz
mana-client-f0d5e3da15a308fcc962590330e7d8e39e8874b9.tar.bz2
mana-client-f0d5e3da15a308fcc962590330e7d8e39e8874b9.tar.xz
mana-client-f0d5e3da15a308fcc962590330e7d8e39e8874b9.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/text.h')
-rw-r--r--src/text.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/text.h b/src/text.h
index 0b53dd48..cf0aac48 100644
--- a/src/text.h
+++ b/src/text.h
@@ -39,7 +39,8 @@ class Text
* Constructor creates a text object to display on the screen.
*/
Text(const std::string &text, int x, int y,
- gcn::Graphics::Alignment alignment, gcn::Color color);
+ gcn::Graphics::Alignment alignment,
+ const gcn::Color *color);
/**
* Destructor. The text is removed from the screen.
@@ -64,14 +65,15 @@ class Text
int mXOffset; /**< The offset of mX from the desired x. */
static int mInstances; /**< Instances of text. */
std::string mText; /**< The text to display. */
- gcn::Color mColor; /**< The color of the text. */
+ const gcn::Color *mColor; /**< The color of the text. */
};
class FlashText : public Text
{
public:
FlashText(const std::string &text, int x, int y,
- gcn::Graphics::Alignment alignment, gcn::Color color);
+ gcn::Graphics::Alignment alignment,
+ const gcn::Color* color);
/**
* Remove the text from the screen