summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-25 03:56:27 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-25 03:56:27 +0100
commit17d2756975a8ff22ecba92c055fa7a7f77d425c6 (patch)
tree76aaa104da3ee97b07aec7f2d972f8b8d6239d9a /src/text.h
parent7e928fc6559e89b64f49aea30d796dbfe75c4912 (diff)
parent61040888a373b03cc599750c33186848cae37ef4 (diff)
downloadmana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.tar.gz
mana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.tar.bz2
mana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.tar.xz
mana-17d2756975a8ff22ecba92c055fa7a7f77d425c6.zip
Merge branch 'master' of git@gitorious.org:tmw/eathena
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/text.h b/src/text.h
index 11e4e4be..0c6f072a 100644
--- a/src/text.h
+++ b/src/text.h
@@ -37,8 +37,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::Font *font,
- gcn::Color colour);
+ gcn::Graphics::Alignment alignment,
+ gcn::Color colour, bool isSpeech = false);
/**
* Destructor. The text is removed from the screen.
@@ -62,16 +62,20 @@ class Text
int mHeight; /**< The height of the text. */
int mXOffset; /**< The offset of mX from the desired x. */
static int mInstances; /**< Instances of text. */
- gcn::Font *mFont; /**< The font used. */
std::string mText; /**< The text to display. */
gcn::Color mColour; /**< The colour of the text. */
+ bool mIsSpeech; /**< Is this text a speech bubble? */
+
+ protected:
+ static ImageRect mBubble; /**< Speech bubble graphic */
+ static Image *mBubbleArrow; /**< Speech bubble arrow graphic */
};
class FlashText : public Text
{
public:
FlashText(const std::string &text, int x, int y,
- gcn::Graphics::Alignment alignment, gcn::Font *font,
+ gcn::Graphics::Alignment alignment,
gcn::Color colour);
/**