summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-cmd.h
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-12-27 03:10:37 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-12-27 03:13:06 +0100
commit6282fd36145632bf300921377020cb52217fa4a1 (patch)
treeafbdeb8e727c2fd9cebe48bc5a74d7d32d3d2f78 /crawl-ref/source/tilereg-cmd.h
parent2ea14a83b7d2f9f57106f5ccf2b24ee9caadca85 (diff)
downloadcrawl-ref-6282fd36145632bf300921377020cb52217fa4a1.tar.gz
crawl-ref-6282fd36145632bf300921377020cb52217fa4a1.zip
Add a tile tab for common commands.
Currently un-detached, and without command tiles. (I used one of Denzi's minitiles as a placeholder for the tab itself.)
Diffstat (limited to 'crawl-ref/source/tilereg-cmd.h')
-rw-r--r--crawl-ref/source/tilereg-cmd.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-cmd.h b/crawl-ref/source/tilereg-cmd.h
new file mode 100644
index 0000000000..1280cd99de
--- /dev/null
+++ b/crawl-ref/source/tilereg-cmd.h
@@ -0,0 +1,32 @@
+/*
+ * File: tilereg_cmd.h
+ * Created by: jpeg on Sat, Dec 27 2010
+ */
+
+#ifdef USE_TILE
+#ifndef TILEREG_CMD_H
+#define TILEREG_CMD_H
+
+#include "tilereg-grid.h"
+
+class CommandRegion : public GridRegion
+{
+public:
+ CommandRegion(const TileRegionInit &init);
+
+ virtual void update();
+ virtual int handle_mouse(MouseEvent &event);
+ virtual bool update_tip_text(std::string &tip);
+ virtual bool update_tab_tip_text(std::string &tip, bool active);
+ virtual bool update_alt_text(std::string &alt);
+
+ virtual const std::string name() const { return "Commands"; }
+
+protected:
+ virtual void pack_buffers();
+ virtual void draw_tag();
+ virtual void activate();
+};
+
+#endif
+#endif