diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-17 05:15:52 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-17 05:15:52 +0000 |
commit | 72a1b48efaa33990165f6efe8b04c9b0c72f2823 (patch) | |
tree | a16a3ff391d85b8ff20a10656e8d34ccabc152eb /crawl-ref/source/tilereg.h | |
parent | 4ac93cd2bf30ae6d44d8cc8b8c9e122da57e9aec (diff) | |
download | crawl-ref-72a1b48efaa33990165f6efe8b04c9b0c72f2823.tar.gz crawl-ref-72a1b48efaa33990165f6efe8b04c9b0c72f2823.zip |
Adding immediate mouseover text to inventory regions.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6941 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.h')
-rw-r--r-- | crawl-ref/source/tilereg.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/tilereg.h b/crawl-ref/source/tilereg.h index 74a14b42e8..4c1913b5a8 100644 --- a/crawl-ref/source/tilereg.h +++ b/crawl-ref/source/tilereg.h @@ -182,7 +182,8 @@ public: class TileRegion : public Region { public: - TileRegion(ImageManager *im, unsigned int tile_x, unsigned int tile_y); + TileRegion(ImageManager *im, FTFont *tag_font, + unsigned int tile_x, unsigned int tile_y); ~TileRegion(); protected: @@ -199,6 +200,7 @@ protected: }; std::vector<tile_vert> m_verts; + FTFont *m_tag_font; }; struct TextTag @@ -261,7 +263,6 @@ protected: int m_cy_to_gy; coord_def m_cursor[CURSOR_MAX]; std::vector<TextTag> m_tags[TAG_MAX]; - FTFont *m_tag_font; }; class InventoryTile @@ -286,7 +287,8 @@ public: class InventoryRegion : public TileRegion { public: - InventoryRegion(ImageManager *im, unsigned int tile_x, unsigned int tile_y); + InventoryRegion(ImageManager *im, FTFont *tag_font, + unsigned int tile_x, unsigned int tile_y); virtual ~InventoryRegion(); virtual void clear(); |