summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 16:56:01 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 16:56:01 +0100
commit944c187b91e823075dd1708b4f575acd43f0428f (patch)
treed8513a7d1eac88ab6d4abcf9939e89db482c135b /src/text.h
parent72e65a1cc2f2f9f541d24382eff4a2edb2535e57 (diff)
downloadmana-944c187b91e823075dd1708b4f575acd43f0428f.tar.gz
mana-944c187b91e823075dd1708b4f575acd43f0428f.tar.bz2
mana-944c187b91e823075dd1708b4f575acd43f0428f.tar.xz
mana-944c187b91e823075dd1708b4f575acd43f0428f.zip
Added speech bubble background by QOAL
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/text.h b/src/text.h
index 11e4e4be..cdf91fb9 100644
--- a/src/text.h
+++ b/src/text.h
@@ -38,7 +38,7 @@ class Text
*/
Text(const std::string &text, int x, int y,
gcn::Graphics::Alignment alignment, gcn::Font *font,
- gcn::Color colour);
+ gcn::Color colour, bool isSpeech = false);
/**
* Destructor. The text is removed from the screen.
@@ -65,6 +65,11 @@ class 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