From 2b1e045b5c57f1bae61bd3ffbd05577062f6f34c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 23 Apr 2016 20:30:02 -0400 Subject: TITANIC: Implemented remainder of CPetSound methods --- engines/titanic/pet_control/pet_sound.h | 36 +++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'engines/titanic/pet_control/pet_sound.h') diff --git a/engines/titanic/pet_control/pet_sound.h b/engines/titanic/pet_control/pet_sound.h index 36b6a8bb33..3727780c4b 100644 --- a/engines/titanic/pet_control/pet_sound.h +++ b/engines/titanic/pet_control/pet_sound.h @@ -30,6 +30,8 @@ namespace Titanic { +class CPetRealLife; + class CPetSound : public CPetGlyph { private: CPetGfxElement _element; @@ -41,8 +43,8 @@ private: CPetText _textMusicVolume; CPetText _textParrotVolume; CPetText _textSpeechVolume; - int _field198; - int _field19C; + CPetSlider *_draggingSlider; + int _draggingSliderNum; private: /** * Called when a slider has changed @@ -71,6 +73,36 @@ public: * information it displays */ virtual bool checkHighlight(const Point &pt); + + /** + * Called when mouse drag starts + */ + virtual bool MouseDragStartMsg(CMouseDragStartMsg *msg); + + /** + * Called during mouse drags + */ + virtual bool MouseDragMoveMsg(CMouseDragMoveMsg *msg); + + /** + * Called when mouse drag ends + */ + virtual bool MouseDragEndMsg(CMouseDragEndMsg *msg); + + /** + * 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); + + /** + * Get the parent RealLife area + */ + CPetGlyphs *getOwner() { return _owner; } }; } // End of namespace Titanic -- cgit v1.2.3