From c3f91ca288cd4cfb884fedb956d0d1049f857841 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 9 Mar 2006 01:08:25 +0000 Subject: Converted all scumm dialogs to new scheme svn-id: r21147 --- gui/themes/default-theme.ini | 114 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 97 insertions(+), 17 deletions(-) (limited to 'gui/themes') diff --git a/gui/themes/default-theme.ini b/gui/themes/default-theme.ini index 3b6e0a034b..74b8e0c138 100644 --- a/gui/themes/default-theme.ini +++ b/gui/themes/default-theme.ini @@ -141,6 +141,13 @@ def_kFontHeight=10 def_globOptionsW=(w - 2 * 10) def_globOptionsH=(h - 1 * 40) def_tabPopupsLabelW=100 +def_scummmainHOffset=8 +def_scummmainVSpace=5 +def_scummmainVAddOff=2 +def_scummmainButtonWidth=90 +def_scummmainButtonHeight=16 +def_scummhelpX=5 +def_scummhelpW=(w - 2 * 5) def_midiControlsSpacing=1 use=XxY @@ -155,11 +162,18 @@ def_kFontHeight=14 def_globOptionsW=(w - 2 * 10) def_globOptionsH=(h - 2 * 40) def_tabPopupsLabelW=150 +def_scummmainHOffset=12 +def_scummmainVSpace=7 +def_scummmainVAddOff=3 +def_scummmainButtonWidth=160 +def_scummmainButtonHeight=28 +def_scummhelpW=370 +def_scummhelpX=((w - scummhelpW) / 2) def_midiControlsSpacing=2 chooser_headline=10 6 (w - 2 * 16) (kLineHeight) chooser_list=10 (6 + kLineHeight + 2) (w - 2 * 16) (h - self.y - buttonHeight - 12) -## launcher +##### launcher hBorder=10 launcher_version=hBorder 8 (w - 2 * hBorder) kLineHeight top=(h - 8 - buttonHeight) @@ -167,23 +181,23 @@ numButtons=4 space=8 butWidth=((w - 2 * hBorder - space * (numButtons - 1)) / numButtons) launcher_quit_button=hBorder top butWidth buttonHeight -launcher_about_button=(prev.x2 + space) top butWidth buttonHeight -launcher_options_button=(prev.x2 + space) top butWidth buttonHeight -launcher_start_button=(prev.x2 + space) top butWidth buttonHeight +launcher_about_button=(prev.x2 + space) prev.y prev.w prev.h +launcher_options_button=(prev.x2 + space) prev.y prev.w prev.h +launcher_start_button=(prev.x2 + space) prev.y prev.w prev.h top=(top - buttonHeight * 2) numButtons=3 space=10 butWidth=((w - 2 * hBorder - space * (numButtons - 1)) / numButtons) launcher_addGame_button=hBorder top butWidth buttonHeight -launcher_editGame_button=(prev.x2 + space) top butWidth buttonHeight -launcher_removeGame_button=(prev.x2 + space) top butWidth buttonHeight +launcher_editGame_button=(prev.x2 + space) prev.y prev.w prev.h +launcher_removeGame_button=(prev.x2 + space) prev.y prev.w prev.h launcher_list=hBorder (kLineHeight + 16) (w - 2 * hBorder) (top - kLineHeight - 20) -# global options +### global options globaloptions=10 40 globOptionsW globOptionsH set_parent=globaloptions vBorder=5 -globaloptions_tabwidget=0, vBorder parent.w (parent.h - buttonHeight -8 - 2 * vBorder) +globaloptions_tabwidget=0, vBorder parent.w (parent.h - buttonHeight - 8 - 2 * vBorder) # graphics tab opYoffset=vBorder @@ -204,17 +218,17 @@ useWithPrefix=midiControls globaloptions_ # paths tab yoffset=vBorder globaloptions_savebutton=5 yoffset (buttonWidth + 5) buttonHeight -globaloptions_savepath=(prev.x2 + 20) (vBorder + 3) (parent.w - (5 + buttonWidth + 20) - 10) kLineHeight +globaloptions_savepath=(prev.x2 + 20) (vBorder + 3) (parent.w - (prev.w + 20) - 10) kLineHeight yoffset=(yoffset + buttonHeight + 4) globaloptions_extrabutton=5 yoffset (buttonWidth + 5) buttonHeight -globaloptions_extrapath=(prev.x2 + 20) (vBorder + 3) (parent.w - (5 + buttonWidth + 20) - 10) kLineHeight +globaloptions_extrapath=(prev.x2 + 20) (vBorder + 3) (parent.w - (prev.w + 20) - 10) kLineHeight yoffset=(yoffset + buttonHeight + 4) globaloptions_keysbutton=5 yoffset buttonWidth buttonHeight -globaloptions_ok=(parent.w - (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight globaloptions_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight +globaloptions_ok=(prev.x2 + 10) prev.y prev.w prev.h -# game options +### game options opYoffset=(vBorder + buttonHeight) opWidth=globOptionsW useWithPrefix=graphicsControls gameoptions_ @@ -228,20 +242,86 @@ useWithPrefix=volumeControls gameoptions_ opYoffset=(vBorder + buttonHeight) useWithPrefix=midiControls gameoptions_ -### SCUMM game options +##### SCUMM dialogs +scummDummyDialog=0 80 0 16 + +## Main dialog +# note that scummmain size depends on overall height +smY=(scummmainVSpace + scummmainVAddOff) +scummmain_resume=scummmainHOffset smY scummmainButtonWidth scummmainButtonHeight +smY=(smY + scummmainButtonHeight + scummmainVAddOff) +smY=(smY + scummmainVSpace) +scummmain_load=prev.x smY prev.w prev.h +smY=(smY + scummmainButtonHeight + scummmainVAddOff) +scummmain_save=prev.x smY prev.w prev.h +smY=(smY + scummmainButtonHeight + scummmainVAddOff) +smY=(smY + scummmainVSpace) +scummmain_options=prev.x smY prev.w prev.h +smY=(smY + scummmainButtonHeight + scummmainVAddOff) +scummmain_help=prev.x smY prev.w prev.h +smY=(smY + scummmainButtonHeight + scummmainVAddOff) +scummmain_about=prev.x smY prev.w prev.h +smY=(smY + scummmainButtonHeight + scummmainVAddOff) +smY=(smY + scummmainVSpace) +scummmain_quit=prev.x smY prev.w prev.h +smY=(smY + scummmainButtonHeight + scummmainVAddOff) +smW=(scummmainButtonWidth + 2 * scummmainHOffset) +smH=(smY + scummmainVSpace) +scummmain=((w - smW) / 2) ((h - smH) / 2) smW smH + +## Engine config +# note that scummconfig size depends on overall height +# hence it is on the end of the list opYoffset=8 -useWithPrefix=volumeControls scummoptions_ - +useWithPrefix=volumeControls scummconfig_ +scummconfig_subtitlesCheckbox=15 opYoffset (kFontHeight + 10 + 89) buttonHeight +opYoffset=(opYoffset + buttonHeight) +scummconfig_speechCheckbox=prev.x opYoffset (kFontHeight + 10 + 85) buttonHeight +opYoffset=(opYoffset + buttonHeight + 4) +soWidth=(8 + 3 * buttonWidth + 4) +scummconfig_keys=(soWidth - 3 * (buttonWidth + 4) - 4) opYoffset buttonWidth buttonHeight +scummconfig_cancel=(prev.x2 + 4) prev.y prev.w prev.h +scummconfig_ok=(prev.x2 + 4) prev.y prev.w prev.h +opYoffset=(opYoffset + buttonHeight) +scummconfig=((w - soWidth) / 2) ((h - opYoffset) / 2) soWidth (opYoffset + 8) + +## Help +scummHelpNumLines=15 +shH=(5 + (2 + scummHelpNumLines) * kFontHeight + buttonHeight + 7) +scummhelp=scummhelpX ((h - shH) / 2) scummhelpW shH +scummhelp_title=10 5 scummhelpW kFontHeight +scummhelp_key.x=10 +scummhelp_key.yoffset=5 +scummhelp_key.w=80 +scummhelp_key.h=kFontHeight +scummhelp_dsc.x=90 +scummhelp_dsc.yoffset=5 +scummhelp_dsc.w=(scummhelpW - 10 - 90) +scummhelp_dsc.h=kFontHeight +scummhelp_prev=10 (5 + kFontHeight * (scummHelpNumLines + 2) + 2) buttonWidth buttonHeight +scummhelp_next=(prev.x2 + 8) prev.y prev.w prev.h +scummhelp_close=(scummhelpW - 8 - buttonWidth) prev.y prev.w prev.h + +# Saveload dialog +scummsaveload=8 8 (w - 2 * 8) (h - 16) +set_parent=scummsaveload +scummsaveload_title=10 6 (parent.w - 2 * 10) kLineHeight +scummsaveload_list=10 18 (parent.w - 2 * 10 - 180) (parent.h - 14 - buttonHeight - 18) +scummsaveload_thumbnail=(parent.w - (kThumbnailWidth + 22)) 18 +scummsaveload_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeight - 8) buttonWidth buttonHeight +scummsaveload_choose=(prev.x2 + 10) prev.y prev.w prev.h + +############################################ [graphicsControls] gcx=10 gcw=(opWidth - 2 * 10) grModePopup=(gcx - 5) opYoffset (gcw + 5) kLineHeight opYoffset=(opYoffset + kLineHeight + 4) -grRenderPopup=(gcx - 5) opYoffset (gcw + 5) kLineHeight +grRenderPopup=prev.x opYoffset prev.w prev.h opYoffset=(opYoffset + kLineHeight + 4) grFullscreenCheckbox=gcx opYoffset (kFontHeight + 10 + 96) buttonHeight opYoffset=(opYoffset + buttonHeight) -grAspectCheckbox=gcx opYoffset (kFontHeight + 10 + 136) buttonHeight +grAspectCheckbox=prev.x opYoffset (kFontHeight + 10 + 136) prev.h opYoffset=(opYoffset + buttonHeight) [audioControls] -- cgit v1.2.3