diff options
author | Paul Gilbert | 2016-05-02 20:34:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:38:11 -0400 |
commit | 82a1f6f0aa0afd414e3de677ab49e7ea1c15f226 (patch) | |
tree | 44c96241281baa7ae20a9c2c7d98a6d966eeaecc /engines/titanic/pet_control/pet_remote_glyphs.h | |
parent | 00cb975f158d82f80bcad3e025aeaedc8a5cd7d9 (diff) | |
download | scummvm-rg350-82a1f6f0aa0afd414e3de677ab49e7ea1c15f226.tar.gz scummvm-rg350-82a1f6f0aa0afd414e3de677ab49e7ea1c15f226.tar.bz2 scummvm-rg350-82a1f6f0aa0afd414e3de677ab49e7ea1c15f226.zip |
TITANIC: Implement Deploy Relaxation Device glyph
Diffstat (limited to 'engines/titanic/pet_control/pet_remote_glyphs.h')
-rw-r--r-- | engines/titanic/pet_control/pet_remote_glyphs.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_remote_glyphs.h b/engines/titanic/pet_control/pet_remote_glyphs.h index de56787bd0..09c626414c 100644 --- a/engines/titanic/pet_control/pet_remote_glyphs.h +++ b/engines/titanic/pet_control/pet_remote_glyphs.h @@ -31,7 +31,8 @@ namespace Titanic { enum RemoteGlyph { GLYPH_SUMMON_ELEVATOR = 0, GLYPH_SUMMON_PELLERATOR = 1, GLYPH_TELEVISION_CONTROL = 2, GLYPH_ENTERTAINMENT_DEVICE = 3, - GLYPH_OPERATE_LIGHTS = 4, GLYPH_DEPLOY_FLORAL = 5 + GLYPH_OPERATE_LIGHTS = 4, GLYPH_DEPLOY_FLORAL = 5, + GLYPH_DEPLOY_RELAXATION = 6 }; enum RemoteMessage { @@ -278,6 +279,33 @@ public: virtual void getTooltip(CPetText *text); }; +class CDeployRelaxationGlyph : public CToggleRemoteGlyph { +public: + /** + * Setup the glyph + */ + virtual bool setup(CPetControl *petControl, CPetGlyphs *owner); + + /** + * Called for mouse button down messages + */ + virtual bool MouseButtonDownMsg(const Point &pt) { + return elementMouseButtonDownMsg(pt); + } + + /** + * Handles mouse button up messages + */ + virtual bool MouseButtonUpMsg(const Point &pt) { + return elementMouseButtonUpMsg(pt); + } + + /** + * Returns the tooltip text for when the glyph is selected + */ + virtual void getTooltip(CPetText *text); +}; + } // End of namespace Titanic #endif /* TITANIC_PET_REMOTE_GLYPHS_H */ |