aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_remote_glyphs.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-03-29 21:49:22 -0400
committerPaul Gilbert2017-03-29 21:49:22 -0400
commit3b08987ad298dd4258df44de98fddc620d8a045f (patch)
tree578ced05ad3c43fcdc5d06c0c1d5daf7c3492c34 /engines/titanic/pet_control/pet_remote_glyphs.h
parent7492d620b7f619f736b73281dd42411bc55b0752 (diff)
downloadscummvm-rg350-3b08987ad298dd4258df44de98fddc620d8a045f.tar.gz
scummvm-rg350-3b08987ad298dd4258df44de98fddc620d8a045f.tar.bz2
scummvm-rg350-3b08987ad298dd4258df44de98fddc620d8a045f.zip
TITANIC: Add remote icon for skipping nav puzzle
Diffstat (limited to 'engines/titanic/pet_control/pet_remote_glyphs.h')
-rw-r--r--engines/titanic/pet_control/pet_remote_glyphs.h40
1 files changed, 36 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_remote_glyphs.h b/engines/titanic/pet_control/pet_remote_glyphs.h
index 0a035ec03a..fc7df8c0d4 100644
--- a/engines/titanic/pet_control/pet_remote_glyphs.h
+++ b/engines/titanic/pet_control/pet_remote_glyphs.h
@@ -38,10 +38,10 @@ enum RemoteGlyph {
GLYPH_DEPLOY_WORK_SURFACE = 12, GLYPH_DEPLOY_MINOR_RELAXATION = 13,
GLYPH_DEPLOY_SINK = 14, GLYPH_DEPLOY_MAJOR_STORAGE = 15,
GLYPH_SUCCUBUS_DELIVERY = 16, GLYPH_NAVIGATION_CONTROLLER = 17,
- GLYPH_GOTO_BOTTOM_OF_WELL = 18, GLYPH_GOTO_TOP_OF_WELL = 19,
- GLYPH_GOTO_STATEROOM = 20, GLYPH_GOTO_BAR = 21,
- GLYPH_GOTO_PROMENADE = 22, GLYPH_GOTO_ARBORETUM = 23,
- GLYPH_GOTO_MUSIC_ROOM = 24, GLYPH_GOTO_RESTAURANT = 25
+ GLYPH_SKIP_NAVIGATION = 18, GLYPH_GOTO_BOTTOM_OF_WELL = 19,
+ GLYPH_GOTO_TOP_OF_WELL = 20, GLYPH_GOTO_STATEROOM = 21,
+ GLYPH_GOTO_BAR = 22, GLYPH_GOTO_PROMENADE = 23, GLYPH_GOTO_ARBORETUM = 24,
+ GLYPH_GOTO_MUSIC_ROOM = 25, GLYPH_GOTO_RESTAURANT = 26
};
enum RemoteMessage {
@@ -700,6 +700,38 @@ public:
CGotoRestaurantGlyph();
};
+class CSkipNavigationGlyph : public CPetRemoteGlyph {
+protected:
+ CPetGfxElement *_button;
+public:
+ CSkipNavigationGlyph() : CPetRemoteGlyph(), _button(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(CTextControl *text);
+};
+
} // End of namespace Titanic
#endif /* TITANIC_PET_REMOTE_GLYPHS_H */