ALL: synced with scummvm
This commit is contained in:
parent
522885137f
commit
0517f256d7
23 changed files with 2536 additions and 833 deletions
|
@ -890,6 +890,22 @@ void OptionsDialog::addVolumeControls(GuiObject *boss, const Common::String &pre
|
|||
_enableVolumeSettings = true;
|
||||
}
|
||||
|
||||
void OptionsDialog::addEngineControls(GuiObject *boss, const Common::String &prefix, const ExtraGuiOptions &engineOptions) {
|
||||
// Note: up to 7 engine options can currently fit on screen (the most that
|
||||
// can fit in a 320x200 screen with the classic theme).
|
||||
// TODO: Increase this number by including the checkboxes inside a scroll
|
||||
// widget. The appropriate number of checkboxes will need to be added to
|
||||
// the theme files.
|
||||
|
||||
uint i = 1;
|
||||
ExtraGuiOptions::const_iterator iter;
|
||||
for (iter = engineOptions.begin(); iter != engineOptions.end(); ++iter, ++i) {
|
||||
Common::String id = Common::String::format("%d", i);
|
||||
_engineCheckboxes.push_back(new CheckboxWidget(boss,
|
||||
prefix + "customOption" + id + "Checkbox", _(iter->label), _(iter->tooltip)));
|
||||
}
|
||||
}
|
||||
|
||||
bool OptionsDialog::loadMusicDeviceSetting(PopUpWidget *popup, Common::String setting, MusicType preferredType) {
|
||||
if (!popup || !popup->isEnabled())
|
||||
return true;
|
||||
|
@ -1369,11 +1385,11 @@ void GlobalOptionsDialog::reflowLayout() {
|
|||
|
||||
if (_midiTabId != -1) {
|
||||
_tabWidget->setActiveTab(_midiTabId);
|
||||
|
||||
/* Residual do not use it
|
||||
_tabWidget->removeWidget(_soundFontClearButton);
|
||||
_soundFontClearButton->setNext(0);
|
||||
delete _soundFontClearButton;
|
||||
_soundFontClearButton = addClearButton(_tabWidget, "GlobalOptions_MIDI.mcFontClearButton", kClearSoundFontCmd);
|
||||
_soundFontClearButton = addClearButton(_tabWidget, "GlobalOptions_MIDI.mcFontClearButton", kClearSoundFontCmd);*/
|
||||
}
|
||||
|
||||
if (_pathsTabId != -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue