From 0d6362ea485f89a940ffadd1c6fe954f94309c53 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 13 May 2006 17:30:04 +0000 Subject: Patch #1091170: ALL, SCUMM: Subtitle speed control svn-id: r22456 --- gui/theme-config.cpp | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) (limited to 'gui/theme-config.cpp') diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp index 708a84ba09..c9c83c7dbc 100644 --- a/gui/theme-config.cpp +++ b/gui/theme-config.cpp @@ -50,6 +50,7 @@ const char *Theme::_defaultConfigINI = "def_scummhelpX=5\n" "def_scummhelpW=(w - 2 * 5)\n" "def_midiControlsSpacing=1\n" +"def_vcAudioTabIndent=0\n" "use=XxY\n" "# Scumm Saveload dialog\n" "scummsaveload=8 8 (w - 2 * 8) (h - 16)\n" @@ -85,6 +86,7 @@ const char *Theme::_defaultConfigINI = "def_scummhelpW=370\n" "def_scummhelpX=((w - scummhelpW) / 2)\n" "def_midiControlsSpacing=2\n" +"def_vcAudioTabIndent=10\n" "##### Widgets config\n" "ListWidget.leftPadding=4\n" "ListWidget.rightPadding=0\n" @@ -141,12 +143,14 @@ const char *Theme::_defaultConfigINI = "\n" "# graphics tab\n" "opYoffset=vBorder\n" +"opXoffset=0\n" "useWithPrefix=graphicsControls globaloptions_\n" "\n" "# audio tab\n" "opYoffset=vBorder\n" "useWithPrefix=audioControls globaloptions_\n" "useWithPrefix=volumeControls globaloptions_\n" +"useWithPrefix=subtitleControls globaloptions_\n" "\n" "# MIDI tab\n" "opYoffset=vBorder\n" @@ -205,6 +209,7 @@ const char *Theme::_defaultConfigINI = "\n" "# graphics tab\n" "opYoffset=vBorder\n" +"opXoffset=gox\n" "gameoptions_graphicsCheckbox=gox opYoffset (kFontHeight + 10 + 192) buttonHeight\n" "opYoffset=(opYoffset + buttonHeight)\n" "useWithPrefix=graphicsControls gameoptions_\n" @@ -214,6 +219,7 @@ const char *Theme::_defaultConfigINI = "gameoptions_audioCheckbox=gox opYoffset (kFontHeight + 10 + 180) buttonHeight\n" "opYoffset=(opYoffset + buttonHeight)\n" "useWithPrefix=audioControls gameoptions_\n" +"useWithPrefix=subtitleControls gameoptions_\n" "\n" "# midi tab\n" "opYoffset=vBorder\n" @@ -251,9 +257,8 @@ const char *Theme::_defaultConfigINI = "# hence it is on the end of the list\n" "opYoffset=8\n" "useWithPrefix=volumeControls scummconfig_\n" -"scummconfig_subtitlesCheckbox=15 opYoffset (kFontHeight + 10 + 89) buttonHeight\n" +"useWithPrefix=subtitleControls scummconfig_\n" "opYoffset=(opYoffset + buttonHeight)\n" -"scummconfig_speechCheckbox=prev.x opYoffset (kFontHeight + 10 + 85) buttonHeight\n" "opYoffset=(opYoffset + buttonHeight + 4)\n" "soWidth=(8 + 3 * buttonWidth + 4)\n" "scummconfig_keys=(soWidth - 3 * (buttonWidth + 4) + 6) opYoffset (buttonWidth - 10) buttonHeight\n" @@ -299,7 +304,6 @@ const char *Theme::_defaultConfigINI = "chooser_cancel=(chooserW - 2 * (buttonWidth + 10)) (opHeight - buttonHeight - 8) buttonWidth buttonHeight\n" "chooser_ok=(prev.x2 + 10) prev.y prev.w prev.h\n" "\n" -"\n" "[graphicsControls]\n" "gcx=10\n" "gcw=(parent.w - 2 * 10)\n" @@ -316,24 +320,23 @@ const char *Theme::_defaultConfigINI = "aux=10\n" "auw=(parent.w - 2 * 10)\n" "auMidiPopup=(aux - 5) (opYoffset - 1) (auw + 5) (kLineHeight + 2)\n" -"opYoffset=(opYoffset + kLineHeight + 4)\n" -"auSubtitlesCheckbox=aux opYoffset (kFontHeight + 10 + 102) buttonHeight\n" -"opYoffset=(opYoffset + buttonHeight + 18)\n" +"opYoffset=(opYoffset + buttonHeight + 4)\n" "\n" "[volumeControls]\n" -"vctextw=95\n" -"vcxoff=(vctextw + 15)\n" -"vcMusicText=10 (opYoffset + 2) vctextw kLineHeight\n" +"vctextw=(95 + vcAudioTabIndent)\n" +"vcxoff=(opXoffset + vctextw + 15)\n" +"vcx=(opXoffset + 10)\n" +"vcMusicText=vcx (opYoffset + 2) vctextw kLineHeight\n" "vcMusicText.align=kTextAlignRight\n" "vcMusicSlider=vcxoff opYoffset sliderWidth sliderHeight\n" "vcMusicLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n" "opYoffset=(opYoffset + sliderHeight + 4)\n" -"vcSfxText=10 (opYoffset + 2) vctextw kLineHeight\n" +"vcSfxText=vcx (opYoffset + 2) vctextw kLineHeight\n" "vcSfxText.align=kTextAlignRight\n" "vcSfxSlider=vcxoff opYoffset sliderWidth sliderHeight\n" "vcSfxLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n" "opYoffset=(opYoffset + sliderHeight + 4)\n" -"vcSpeechText=10 (opYoffset + 2) vctextw kLineHeight\n" +"vcSpeechText=vcx (opYoffset + 2) vctextw kLineHeight\n" "vcSpeechText.align=kTextAlignRight\n" "vcSpeechSlider=vcxoff opYoffset sliderWidth sliderHeight\n" "vcSpeechLabel=(vcxoff + prev.w + 10) (opYoffset + 2) 24 kLineHeight\n" @@ -351,6 +354,21 @@ const char *Theme::_defaultConfigINI = "mcGSCheckbox=mcx opYoffset (kFontHeight + 10 + 142) buttonHeight\n" "opYoffset=(opYoffset + buttonHeight + midiControlsSpacing)\n" "\n" +"[subtitleControls]\n" +"sbx=(opXoffset + 10)\n" +"sbYoff=(buttonHeight / 8)\n" +"sbOff=((sliderHeight - kLineHeight) / 2 + 2)\n" +"sbtextw=(100 + vcAudioTabIndent)\n" +"opYoffset=(opYoffset + sbYoff)\n" +"subToggleDesc=sbx (opYoffset + sbYoff) sbtextw buttonHeight\n" +"subToggleButton=prev.x2 (opYoffset - sbYoff) (buttonWidth + 54) buttonHeight\n" +"opYoffset=(opYoffset + buttonHeight + 6)\n" +"subSubtitleSpeedDesc=sbx (opYoffset + sbOff) sbtextw kLineHeight\n" +"subSubtitleSpeedDesc.align=kTextAlignRight\n" +"subSubtitleSpeedSlider=prev.x2 opYoffset sliderWidth sliderHeight\n" +"subSubtitleSpeedLabel=(prev.x2 + 10) (opYoffset + sbOff) 24 kLineHeight\n" +"opYoffset=(opYoffset + sliderHeight + 8)\n" +"\n" "[scummmain]\n" "## Main dialog\n" "# note that scummmain size depends on overall height\n" -- cgit v1.2.3