mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
GUI: Disable speech volume slider in subtitle only mode.
This commit is contained in:
parent
5420ad7619
commit
e8ee551e99
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user