diff options
author | Paul Gilbert | 2016-04-19 21:23:52 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:36 -0400 |
commit | a6e76530b248c6ad61aac0fc4496e126ca6cd77b (patch) | |
tree | 15bfad954c042b2225c41711ae28c49637578075 /engines/titanic/pet_control/pet_glyphs.h | |
parent | 5e16f0b6b3da1e06bb3bc25c65f6e10536760291 (diff) | |
download | scummvm-rg350-a6e76530b248c6ad61aac0fc4496e126ca6cd77b.tar.gz scummvm-rg350-a6e76530b248c6ad61aac0fc4496e126ca6cd77b.tar.bz2 scummvm-rg350-a6e76530b248c6ad61aac0fc4496e126ca6cd77b.zip |
TITANIC: Implement RealLife tab setup
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.h')
-rw-r--r-- | engines/titanic/pet_control/pet_glyphs.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.h b/engines/titanic/pet_control/pet_glyphs.h index 2360bfa13d..48351c9e44 100644 --- a/engines/titanic/pet_control/pet_glyphs.h +++ b/engines/titanic/pet_control/pet_glyphs.h @@ -33,6 +33,7 @@ namespace Titanic { class CPetGlyphs; class CPetSection; +class CPetText; enum GlyphActionMode { ACTION_REMOVE = 0, ACTION_REMOVED = 1, ACTION_CHANGE = 2 }; @@ -92,15 +93,14 @@ public: virtual void proc11() {} /** - * Draw the glyph at a translated position without permanently - * changing the position + * Draw the glyph at a specified position */ - virtual void drawAt(CScreenManager *screenManager, int x, int y); + virtual void drawAt(CScreenManager *screenManager, const Point &pt); /** - * Handles any secondary drawing of a glyph as highlighted + * Handles any secondary drawing of the glyph */ - virtual void drawHighlight() {} + virtual void draw2(CScreenManager *screenManager) {} virtual void proc14(); @@ -113,7 +113,7 @@ public: virtual int proc17() { return 0; } virtual int proc18() { return 0; } virtual int proc19() { return 0; } - virtual int proc20() { return 0; } + virtual bool MouseButtonDownMsg(CMouseButtonDownMsg *msg) { return false; } virtual int proc21() { return 0; } virtual int proc22() { return 0; } virtual int proc23() { return 0; } @@ -125,12 +125,16 @@ public: virtual int proc29() { return 0; } /** - * Returns true if the glyph's bounds, shifted by a given delta, + * Returns true if the glyph's bounds, shifted to a given position, * will contain the specified point */ - virtual bool translateContains(const Point &delta, const Point &pt); + virtual bool contains(const Point &delta, const Point &pt); + + /** + * Returns the tooltip text for when the glyph is selected + */ + virtual void getTooltip(CPetText *text) {} - virtual void proc31() {} virtual void proc32() {} virtual int proc33() { return 1; } |