aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_sound.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-23 20:30:02 -0400
committerPaul Gilbert2016-07-10 16:11:53 -0400
commit2b1e045b5c57f1bae61bd3ffbd05577062f6f34c (patch)
tree4c5d5ad232a572dd7760dc6703b860e7fa98c19b /engines/titanic/pet_control/pet_sound.h
parentf6f68e547d39957fc4678859a95cbec839cc41e4 (diff)
downloadscummvm-rg350-2b1e045b5c57f1bae61bd3ffbd05577062f6f34c.tar.gz
scummvm-rg350-2b1e045b5c57f1bae61bd3ffbd05577062f6f34c.tar.bz2
scummvm-rg350-2b1e045b5c57f1bae61bd3ffbd05577062f6f34c.zip
TITANIC: Implemented remainder of CPetSound methods
Diffstat (limited to 'engines/titanic/pet_control/pet_sound.h')
-rw-r--r--engines/titanic/pet_control/pet_sound.h36
1 files changed, 34 insertions, 2 deletions
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