diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-12 05:05:43 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-12 05:05:43 +0000 |
commit | 76a5cc5049290770249b6661a2f4558b7fbb645e (patch) | |
tree | fa2131d2cef62d963d3c6c821c3ca230b541260f /crawl-ref/source/tilereg.h | |
parent | aa6dd78dceb8d09547021cd319aaaef053df1f4f (diff) | |
download | crawl-ref-76a5cc5049290770249b6661a2f4558b7fbb645e.tar.gz crawl-ref-76a5cc5049290770249b6661a2f4558b7fbb645e.zip |
Mousing over monsters, items, and features will now show their description in the message window. This inadvertantly fixes [2469950], where some lines would appear off screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9030 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.h')
-rw-r--r-- | crawl-ref/source/tilereg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg.h b/crawl-ref/source/tilereg.h index 7bee88c983..b6f75de610 100644 --- a/crawl-ref/source/tilereg.h +++ b/crawl-ref/source/tilereg.h @@ -50,6 +50,7 @@ public: bool inside(int px, int py); virtual bool update_tip_text(std::string &tip) { return false; } + virtual bool update_alt_text(std::string &alt) { return false; } virtual int handle_mouse(MouseEvent &event) = 0; virtual void render() = 0; @@ -167,7 +168,10 @@ public: 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; }; @@ -256,6 +260,7 @@ public: virtual void clear(); virtual int handle_mouse(MouseEvent &event); virtual bool update_tip_text(std::string &tip); + virtual bool update_alt_text(std::string &alt); virtual void on_resize(); void load_dungeon(unsigned int* tileb, int cx_to_gx, int cy_to_gy); @@ -338,6 +343,7 @@ public: void update(int num, InventoryTile *items); void update_slot(int slot, InventoryTile &item); virtual bool update_tip_text(std::string &tip); + virtual bool update_alt_text(std::string &alt); protected: void pack_tile(int x, int y, int idx); |