diff options
author | Travis Howell | 2009-02-07 06:47:19 +0000 |
---|---|---|
committer | Travis Howell | 2009-02-07 06:47:19 +0000 |
commit | 9f2d6d82ca05c4dfe5e649bcda4586c78cb420f3 (patch) | |
tree | cbbb6a526dfc444dc2099f5a8182cddd37967a5f /engines/dialogs.cpp | |
parent | 4131d3d07feec064fa129e1675d39eb3b14d4e8e (diff) | |
download | scummvm-rg350-9f2d6d82ca05c4dfe5e649bcda4586c78cb420f3.tar.gz scummvm-rg350-9f2d6d82ca05c4dfe5e649bcda4586c78cb420f3.tar.bz2 scummvm-rg350-9f2d6d82ca05c4dfe5e649bcda4586c78cb420f3.zip |
Make the subtitle settings in Options section of the global main menu optional, and enable only for game engines where subtitles settings are synced.
svn-id: r36237
Diffstat (limited to 'engines/dialogs.cpp')
-rw-r--r-- | engines/dialogs.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp index 4729b248a0..410b5e8d4d 100644 --- a/engines/dialogs.cpp +++ b/engines/dialogs.cpp @@ -109,7 +109,7 @@ MainMenuDialog::MainMenuDialog(Engine *engine) new GUI::ButtonWidget(this, "GlobalMenu.Quit", "Quit", kQuitCmd, 'Q'); _aboutDialog = new GUI::AboutDialog(); - _optionsDialog = new ConfigDialog(); + _optionsDialog = new ConfigDialog(_engine->hasFeature(Engine::kSupportsSubtitleOptions)); _loadDialog = new GUI::SaveLoadChooser("Load game:", "Load"); _loadDialog->setSaveMode(false); _saveDialog = new GUI::SaveLoadChooser("Save game:", "Save"); @@ -269,7 +269,7 @@ enum { // These changes will achieve two things at once: Allow us to get rid of using // "" as value for the domain, and in fact provide a somewhat better user // experience at the same time. -ConfigDialog::ConfigDialog() +ConfigDialog::ConfigDialog(bool subtitleControls) : GUI::OptionsDialog("", "ScummConfig") { // @@ -279,11 +279,13 @@ ConfigDialog::ConfigDialog() addVolumeControls(this, "ScummConfig."); // - // Some misc options + // Subtitle speed and toggle controllers // - // SCUMM has a talkspeed range of 0-9 - addSubtitleControls(this, "ScummConfig.", 9); + if (subtitleControls) { + // Global talkspeed range of 0-255 + addSubtitleControls(this, "ScummConfig.", 255); + } // // Add the buttons |