diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-11-27 21:44:15 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-11-28 01:23:00 +0100 |
commit | 08e121d30c575884924d89b552740181d3647060 (patch) | |
tree | d4d6d5e73e9d932a0a9a271cceb620a41a01cd4b /crawl-ref/source/tilereg-skl.h | |
parent | 7e61870276efca7142839d5f15ea54133ea65ab0 (diff) | |
download | crawl-ref-08e121d30c575884924d89b552740181d3647060.tar.gz crawl-ref-08e121d30c575884924d89b552740181d3647060.zip |
Add the ground structure for a skill management tab in Tiles.
We've got the tiles already, after all.
Diffstat (limited to 'crawl-ref/source/tilereg-skl.h')
-rw-r--r-- | crawl-ref/source/tilereg-skl.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-skl.h b/crawl-ref/source/tilereg-skl.h new file mode 100644 index 0000000000..a7eef052cb --- /dev/null +++ b/crawl-ref/source/tilereg-skl.h @@ -0,0 +1,34 @@ +/* + * File: tilereg_skl.h + * Created by: jpeg on Sat, Nov 27 2010 + */ + +#ifdef USE_TILE +#ifndef TILEREG_SKL_H +#define TILEREG_SKL_H + +#include "tilereg-grid.h" + +class SkillRegion : public GridRegion +{ +public: + SkillRegion(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 "Skills"; } + +protected: + virtual int get_max_slots(); + + virtual void pack_buffers(); + virtual void draw_tag(); + virtual void activate(); +}; + +#endif +#endif |