diff options
author | Paul Gilbert | 2016-04-22 13:16:44 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:43 -0400 |
commit | a719b0585fed6bcbce48e924d65cca5d9ff80bf8 (patch) | |
tree | abac9fd82ab6cea171aeba95538cd51757f96ee4 /engines/titanic/pet_control/pet_slider.cpp | |
parent | 48e9387f2dacc09fff656d8c493a048c520a5c13 (diff) | |
download | scummvm-rg350-a719b0585fed6bcbce48e924d65cca5d9ff80bf8.tar.gz scummvm-rg350-a719b0585fed6bcbce48e924d65cca5d9ff80bf8.tar.bz2 scummvm-rg350-a719b0585fed6bcbce48e924d65cca5d9ff80bf8.zip |
TITANIC: Beginnings of slider logic
Diffstat (limited to 'engines/titanic/pet_control/pet_slider.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_slider.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_slider.cpp b/engines/titanic/pet_control/pet_slider.cpp index dad78d6a1e..4abf0227a1 100644 --- a/engines/titanic/pet_control/pet_slider.cpp +++ b/engines/titanic/pet_control/pet_slider.cpp @@ -21,6 +21,7 @@ */ #include "titanic/pet_control/pet_slider.h" +#include "titanic/pet_control/pet_control.h" namespace Titanic { @@ -86,4 +87,18 @@ void CPetSlider::proc18() { } +/*------------------------------------------------------------------------*/ + +void CPetSoundSlider::setupBackground(const CString &name, CPetControl *petControl) { + if (petControl) { + _background = petControl->getHiddenObject(name); + } +} + +void CPetSoundSlider::setupThumb(const CString &name, CPetControl *petControl) { + if (petControl) { + _thumb = petControl->getHiddenObject(name); + } +} + } // End of namespace Titanic |