diff options
author | Paul Gilbert | 2017-09-04 19:11:01 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-04 19:11:01 -0400 |
commit | 128edeebda490794d0ce78d3d6d84beab29c2246 (patch) | |
tree | c7179a0cd3cb17ffff2aa87b8880ebf337df6555 /engines/titanic/pet_control/pet_sound.h | |
parent | 110b4f09916d366574e5eb62114e68b68510a7a4 (diff) | |
download | scummvm-rg350-128edeebda490794d0ce78d3d6d84beab29c2246.tar.gz scummvm-rg350-128edeebda490794d0ce78d3d6d84beab29c2246.tar.bz2 scummvm-rg350-128edeebda490794d0ce78d3d6d84beab29c2246.zip |
TITANIC: Implement setup code for sound slider positions
Diffstat (limited to 'engines/titanic/pet_control/pet_sound.h')
-rw-r--r-- | engines/titanic/pet_control/pet_sound.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_sound.h b/engines/titanic/pet_control/pet_sound.h index 8e9795d00e..9365b31ee0 100644 --- a/engines/titanic/pet_control/pet_sound.h +++ b/engines/titanic/pet_control/pet_sound.h @@ -50,6 +50,11 @@ private: SliderType _draggingSliderNum; private: /** + * Sets the positions of the volume sliders + */ + void setSliders(); + + /** * Called when a slider has changed */ void sliderChanged(double offset, SliderType sliderNum); @@ -97,6 +102,13 @@ public: virtual bool MouseButtonUpMsg(const Point &pt); /** + * Highlight any currently highlighted element + */ + virtual void highlightCurrent(const Point &pt) { + setSliders(); + } + + /** * Returns the tooltip text for when the glyph is selected */ virtual void getTooltip(CTextControl *text); |