diff options
author | Max Horn | 2006-05-13 17:30:04 +0000 |
---|---|---|
committer | Max Horn | 2006-05-13 17:30:04 +0000 |
commit | 0d6362ea485f89a940ffadd1c6fe954f94309c53 (patch) | |
tree | 1b6c0e09ff11ae5cb4d193333981304b6497c4d5 /engines/scumm/dialogs.cpp | |
parent | 61c3f9d4aae5d7cbbc706a9fb1ecd0ef0f21bbf2 (diff) | |
download | scummvm-rg350-0d6362ea485f89a940ffadd1c6fe954f94309c53.tar.gz scummvm-rg350-0d6362ea485f89a940ffadd1c6fe954f94309c53.tar.bz2 scummvm-rg350-0d6362ea485f89a940ffadd1c6fe954f94309c53.zip |
Patch #1091170: ALL, SCUMM: Subtitle speed control
svn-id: r22456
Diffstat (limited to 'engines/scumm/dialogs.cpp')
-rw-r--r-- | engines/scumm/dialogs.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp index 18e2d3e3e1..17b86067f9 100644 --- a/engines/scumm/dialogs.cpp +++ b/engines/scumm/dialogs.cpp @@ -608,7 +608,7 @@ void MainMenuDialog::open() { #pragma mark - enum { - kOKCmd = 'ok ' + kOKCmd = 'ok ' }; enum { @@ -653,8 +653,8 @@ ConfigDialog::ConfigDialog() // Some misc options // - _subtitlesCheckbox = new GUI::CheckboxWidget(this, "scummconfig_subtitlesCheckbox", "Show subtitles", 0, 'S'); - _speechCheckbox = new GUI::CheckboxWidget(this, "scummconfig_speechCheckbox", "Enable speech", 0, 'E'); + // SCUMM has a talkspeed range of 0-9 + addSubtitleControls(this, "scummconfig_", 9); // // Add the buttons @@ -683,19 +683,9 @@ ConfigDialog::~ConfigDialog() { void ConfigDialog::open() { GUI_OptionsDialog::open(); - - // update checkboxes, too - _subtitlesCheckbox->setState(ConfMan.getBool("subtitles", _domain)); - _speechCheckbox->setState(!ConfMan.getBool("speech_mute", _domain)); } void ConfigDialog::close() { - if (getResult()) { - // Subtitles - ConfMan.setBool("subtitles", _subtitlesCheckbox->getState(), _domain); - ConfMan.setBool("speech_mute", !_speechCheckbox->getState(), _domain); - } - GUI_OptionsDialog::close(); } @@ -927,8 +917,9 @@ void ValueDisplayDialog::drawDialog() { } void ValueDisplayDialog::handleTickle() { - if (getMillis() > _timer) + if (getMillis() > _timer) { close(); + } } void ValueDisplayDialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) { |