summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-msg.h
diff options
context:
space:
mode:
authorEnne Walker <ennewalker@users.sourceforge.net>2010-04-19 20:00:06 -0400
committerEnne Walker <ennewalker@users.sourceforge.net>2010-04-25 19:33:13 -0400
commit8305dc11a61b732984b4bf2a2f8c8f48af84630e (patch)
tree9f605e327b60ab79111ae7c25bec938ed2261a0b /crawl-ref/source/tilereg-msg.h
parentedacdc0db313c0f5385631dfcf560f1fdf8e7c8a (diff)
downloadcrawl-ref-8305dc11a61b732984b4bf2a2f8c8f48af84630e.tar.gz
crawl-ref-8305dc11a61b732984b4bf2a2f8c8f48af84630e.zip
Split tilereg.h/cc into multiple files.
No functional changes, just rearranging and exposing functions where needed.
Diffstat (limited to 'crawl-ref/source/tilereg-msg.h')
-rw-r--r--crawl-ref/source/tilereg-msg.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-msg.h b/crawl-ref/source/tilereg-msg.h
new file mode 100644
index 0000000000..29af5143d3
--- /dev/null
+++ b/crawl-ref/source/tilereg-msg.h
@@ -0,0 +1,30 @@
+/*
+ * File: tilereg_msg.h
+ * Created by: ennewalker on Sat Jan 5 01:33:53 2008 UTC
+ */
+
+#ifdef USE_TILE
+#ifndef TILEREG_MSG_H
+#define TILEREG_MSG_H
+
+#include "tilereg-text.h"
+
+class MessageRegion : public TextRegion
+{
+public:
+ MessageRegion(FontWrapper *font);
+
+ void set_overlay(bool is_overlay);
+
+ virtual int handle_mouse(MouseEvent &event);
+ virtual void render();
+ virtual bool update_tip_text(std::string &tip);
+
+ std::string &alt_text() { return m_alt_text; }
+protected:
+ std::string m_alt_text;
+ bool m_overlay;
+};
+
+#endif
+#endif