diff options
author | Johannes Schickel | 2011-11-13 23:39:26 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-11-18 00:33:30 +0100 |
commit | e8ee551e997cc3a12d5a824deb038d6f554a1858 (patch) | |
tree | 0a720da5a94a208c65760b15c59a45603f2cd1c1 | |
parent | 5420ad7619a000313381bfdca7cc768984192d49 (diff) | |
download | scummvm-rg350-e8ee551e997cc3a12d5a824deb038d6f554a1858.tar.gz scummvm-rg350-e8ee551e997cc3a12d5a824deb038d6f554a1858.tar.bz2 scummvm-rg350-e8ee551e997cc3a12d5a824deb038d6f554a1858.zip |
GUI: Disable speech volume slider in subtitle only mode.
-rw-r--r-- | gui/options.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 4ded2edca3..dfa30d1e3e 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -570,6 +570,12 @@ void OptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data // 'true' because if control is disabled then event do not pass setVolumeSettingsState(true); break; + case kSubtitleToggle: + // We update the slider settings here, when there are sliders, to + // disable the speech volume in case we are in subtitle only mode. + if (_musicVolumeSlider) + setVolumeSettingsState(true); + break; case kSubtitleSpeedChanged: _subSpeedLabel->setValue(_subSpeedSlider->getValue()); _subSpeedLabel->draw(); @@ -691,6 +697,9 @@ void OptionsDialog::setVolumeSettingsState(bool enabled) { _sfxVolumeLabel->setEnabled(ena); ena = enabled && !_muteCheckbox->getState(); + // Disable speech volume slider, when we are in subtitle only mode. + if (_subToggleGroup) + ena = ena && _subToggleGroup->getValue() != kSubtitlesSubs; if (_guioptions.contains(GUIO_NOSPEECH)) ena = false; |