mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 08:17:40 +00:00
Put volume controls conditionally into separate tab. Used by PSP theme.
svn-id: r22775
This commit is contained in:
parent
b6a56e0795
commit
b13e157c16
@ -610,11 +610,18 @@ GlobalOptionsDialog::GlobalOptionsDialog()
|
||||
//
|
||||
tab->addTab("Audio");
|
||||
addAudioControls(tab, "globaloptions_");
|
||||
|
||||
int volControlPos = g_gui.evaluator()->getVar("volumeControlsInAudio", true);
|
||||
|
||||
if (volControlPos)
|
||||
addVolumeControls(tab, "globaloptions_");
|
||||
|
||||
addSubtitleControls(tab, "globaloptions_");
|
||||
|
||||
|
||||
tab->addTab("Volume");
|
||||
addVolumeControls(tab, "globaloptions_");
|
||||
if (!volControlPos) {
|
||||
tab->addTab("Volume");
|
||||
addVolumeControls(tab, "globaloptions_");
|
||||
}
|
||||
|
||||
// TODO: cd drive setting
|
||||
|
||||
|
@ -149,11 +149,8 @@ const char *Theme::_defaultConfigINI =
|
||||
"# audio tab\n"
|
||||
"opYoffset=vBorder\n"
|
||||
"useWithPrefix=audioControls globaloptions_\n"
|
||||
"useWithPrefix=subtitleControls globaloptions_\n"
|
||||
"\n"
|
||||
"# volume tab\n"
|
||||
"opYoffset=vBorder\n"
|
||||
"useWithPrefix=volumeControls globaloptions_\n"
|
||||
"useWithPrefix=subtitleControls globaloptions_\n"
|
||||
"\n"
|
||||
"# MIDI tab\n"
|
||||
"opYoffset=vBorder\n"
|
||||
|
@ -259,11 +259,8 @@ useWithPrefix=graphicsControls globaloptions_
|
||||
# audio tab
|
||||
opYoffset=vBorder
|
||||
useWithPrefix=audioControls globaloptions_
|
||||
useWithPrefix=subtitleControls globaloptions_
|
||||
|
||||
# volume tab
|
||||
opYoffset=vBorder
|
||||
useWithPrefix=volumeControls globaloptions_
|
||||
useWithPrefix=subtitleControls globaloptions_
|
||||
|
||||
# MIDI tab
|
||||
opYoffset=vBorder
|
||||
@ -527,6 +524,20 @@ def_insetW=(w - buttonWidth - 17 * 2 - insetX)
|
||||
def_insetH=(h - 23 - insetY)
|
||||
def_launcherVersionX=50
|
||||
def_launcherVersionY=5
|
||||
def_volumeControlsInAudio=false
|
||||
use=XxY
|
||||
launcher_version.align=kTextAlignCenter
|
||||
launcher_logo.visible=false
|
||||
|
||||
# Override audio tab
|
||||
set_parent=gameoptions
|
||||
vBorder=20
|
||||
|
||||
# audio tab
|
||||
opYoffset=vBorder
|
||||
useWithPrefix=audioControls globaloptions_
|
||||
useWithPrefix=subtitleControls globaloptions_
|
||||
|
||||
# volume tab
|
||||
opYoffset=vBorder
|
||||
useWithPrefix=volumeControls globaloptions_
|
||||
|
Loading…
Reference in New Issue
Block a user