aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_sound.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-04 15:38:38 -0400
committerPaul Gilbert2017-09-04 15:38:38 -0400
commit50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d (patch)
tree3318944e3959bead1948e2d1e5f9cee3da0565b0 /engines/titanic/pet_control/pet_sound.h
parent9a0798f38714eccd57f088af243a167bd1d39bc8 (diff)
downloadscummvm-rg350-50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d.tar.gz
scummvm-rg350-50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d.tar.bz2
scummvm-rg350-50e7a7eb3f6558c6f9cdb906356bcd70bd31f33d.zip
TITANIC: Cleanup and enum for CPetSound
Diffstat (limited to 'engines/titanic/pet_control/pet_sound.h')
-rw-r--r--engines/titanic/pet_control/pet_sound.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_sound.h b/engines/titanic/pet_control/pet_sound.h
index e4fd21006a..8e9795d00e 100644
--- a/engines/titanic/pet_control/pet_sound.h
+++ b/engines/titanic/pet_control/pet_sound.h
@@ -33,6 +33,9 @@ namespace Titanic {
class CPetRealLife;
class CPetSound : public CPetGlyph {
+ enum SliderType {
+ MASTER_SLIDER = 0, MUSIC_SLIDER = 1, PARROT_SLIDER = 2, SPEECH_SLIDER = 3
+ };
private:
CPetGfxElement _element;
CPetSoundSlider _masterVolume;
@@ -44,12 +47,12 @@ private:
CTextControl _textParrotVolume;
CTextControl _textSpeechVolume;
CPetSlider *_draggingSlider;
- int _draggingSliderNum;
+ SliderType _draggingSliderNum;
private:
/**
* Called when a slider has changed
*/
- void sliderChanged(double offset, int sliderNum);
+ void sliderChanged(double offset, SliderType sliderNum);
public:
CPetSound();