aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_remote_glyphs.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-02 20:18:47 -0400
committerPaul Gilbert2016-07-10 16:38:09 -0400
commitab769eee0c99f262052b7a15295a74053943a372 (patch)
tree4bb0ba38b37bce3dc63a4babd50a5941085e92f6 /engines/titanic/pet_control/pet_remote_glyphs.h
parent9a6ad7d1e012a5cb1a4ca955b0f738f12c0a7874 (diff)
downloadscummvm-rg350-ab769eee0c99f262052b7a15295a74053943a372.tar.gz
scummvm-rg350-ab769eee0c99f262052b7a15295a74053943a372.tar.bz2
scummvm-rg350-ab769eee0c99f262052b7a15295a74053943a372.zip
TITANIC: Implement Operate Lights glyph
Diffstat (limited to 'engines/titanic/pet_control/pet_remote_glyphs.h')
-rw-r--r--engines/titanic/pet_control/pet_remote_glyphs.h37
1 files changed, 36 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_remote_glyphs.h b/engines/titanic/pet_control/pet_remote_glyphs.h
index e8f0c8d8c7..39f9164979 100644
--- a/engines/titanic/pet_control/pet_remote_glyphs.h
+++ b/engines/titanic/pet_control/pet_remote_glyphs.h
@@ -30,7 +30,8 @@ namespace Titanic {
enum RemoteGlyph {
GLYPH_SUMMON_ELEVATOR = 0, GLYPH_SUMMON_PELLERATOR = 1,
- GLYPH_TELEVISION_CONTROL = 2, GLYPH_ENTERTAINMENT_DEVICE = 3
+ GLYPH_TELEVISION_CONTROL = 2, GLYPH_ENTERTAINMENT_DEVICE = 3,
+ GLYPH_OPERATE_LIGHTS = 4
};
enum RemoteMessage {
@@ -216,6 +217,40 @@ public:
virtual void getTooltip(CPetText *text);
};
+
+class COperateLightsGlyph : public CPetRemoteGlyph {
+public:
+ CPetGfxElement *_left, *_right, *_up, *_down, *_activate;
+public:
+ COperateLightsGlyph() : CPetRemoteGlyph(), _left(nullptr), _right(nullptr),
+ _up(nullptr), _down(nullptr), _activate(nullptr) {}
+
+ /**
+ * Setup the glyph
+ */
+ virtual bool setup(CPetControl *petControl, CPetGlyphs *owner);
+
+ /**
+ * Handles any secondary drawing of the glyph
+ */
+ virtual void draw2(CScreenManager *screenManager);
+
+ /**
+ * Called for mouse button down messages
+ */
+ virtual bool MouseButtonDownMsg(const Point &pt);
+
+ /**
+ * Handles mouse button up messages
+ */
+ virtual bool MouseButtonUpMsg(const Point &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 */