- Resize chooser dialog
- Swap About and Help buttons in main SCUMM menu for consistency with launcher svn-id: r22150
This commit is contained in:
parent
6b76f83ea1
commit
869622cf00
2 changed files with 15 additions and 41 deletions
|
@ -365,10 +365,10 @@ const char *Theme::_defaultConfigINI =
|
||||||
"smY=(smY + scummmainVSpace)\n"
|
"smY=(smY + scummmainVSpace)\n"
|
||||||
"scummmain_options=prev.x smY prev.w prev.h\n"
|
"scummmain_options=prev.x smY prev.w prev.h\n"
|
||||||
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
||||||
"scummmain_help=prev.x smY prev.w prev.h\n"
|
|
||||||
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
|
||||||
"scummmain_about=prev.x smY prev.w prev.h\n"
|
"scummmain_about=prev.x smY prev.w prev.h\n"
|
||||||
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
||||||
|
"scummmain_help=prev.x smY prev.w prev.h\n"
|
||||||
|
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
||||||
"smY=(smY + scummmainVSpace)\n"
|
"smY=(smY + scummmainVSpace)\n"
|
||||||
"scummmain_quit=prev.x smY prev.w prev.h\n"
|
"scummmain_quit=prev.x smY prev.w prev.h\n"
|
||||||
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
"smY=(smY + scummmainButtonHeight + scummmainVAddOff)\n"
|
||||||
|
|
|
@ -151,7 +151,7 @@ fontfile_normal=helvr12-l1.bdf
|
||||||
cursor_hotspot_x=0
|
cursor_hotspot_x=0
|
||||||
cursor_hotspot_y=0
|
cursor_hotspot_y=0
|
||||||
|
|
||||||
[640xY]
|
[XxY]
|
||||||
def_launcherX=23
|
def_launcherX=23
|
||||||
def_widgetSize=kBigWidgetSize
|
def_widgetSize=kBigWidgetSize
|
||||||
def_buttonWidth=120
|
def_buttonWidth=120
|
||||||
|
@ -160,8 +160,10 @@ def_sliderWidth=kBigSliderWidth
|
||||||
def_sliderHeight=kBigSliderHeight
|
def_sliderHeight=kBigSliderHeight
|
||||||
def_kLineHeight=16
|
def_kLineHeight=16
|
||||||
def_kFontHeight=14
|
def_kFontHeight=14
|
||||||
def_globOptionsW=(w - buttonWidth - 17 * 2 - launcherX)
|
def_insetX=23
|
||||||
def_gameOptionsH=(h - 2 * 40)
|
def_insetY=94
|
||||||
|
def_insetW=(w - buttonWidth - 17 * 2 - launcherX)
|
||||||
|
def_insetH=(h - 23 - insetY)
|
||||||
def_gameOptionsLabelWidth=90
|
def_gameOptionsLabelWidth=90
|
||||||
def_tabPopupsLabelW=110
|
def_tabPopupsLabelW=110
|
||||||
def_aboutXOff=8
|
def_aboutXOff=8
|
||||||
|
@ -185,13 +187,11 @@ PopUpWidget.leftPadding=7
|
||||||
PopUpWidget.rightPadding=7
|
PopUpWidget.rightPadding=7
|
||||||
|
|
||||||
###### chooser
|
###### chooser
|
||||||
opHeight=(h * 7 / 10)
|
opHeight=insetH
|
||||||
useWithPrefix=chooser defaultChooser_
|
useWithPrefix=chooser defaultChooser_
|
||||||
|
|
||||||
##### browser
|
##### browser
|
||||||
brW=((w * 7) / 8)
|
browser=insetX insetY insetW insetH
|
||||||
brH=((h * 9) / 10)
|
|
||||||
browser=((w - brW) / 2) ((h - brH) / 2) brW brH
|
|
||||||
set_parent=browser
|
set_parent=browser
|
||||||
browser_headline=10 kLineHeight (parent.w - 2 * 10) kLineHeight
|
browser_headline=10 kLineHeight (parent.w - 2 * 10) kLineHeight
|
||||||
browser_headline.align=kTextAlignCenter
|
browser_headline.align=kTextAlignCenter
|
||||||
|
@ -220,7 +220,7 @@ launcher_quit_button=prev.x (prev.y2 + space1) prev.w prev.h
|
||||||
use=scummmain
|
use=scummmain
|
||||||
|
|
||||||
### global options
|
### global options
|
||||||
globaloptions=23 94 globOptionsW (h - 23 - self.y)
|
globaloptions=insetX insetY insetW insetH
|
||||||
set_parent=globaloptions
|
set_parent=globaloptions
|
||||||
vBorder=20
|
vBorder=20
|
||||||
globaloptions_tabwidget=0 vBorder parent.w (parent.h - buttonHeight - 8 - 2 * vBorder)
|
globaloptions_tabwidget=0 vBorder parent.w (parent.h - buttonHeight - 8 - 2 * vBorder)
|
||||||
|
@ -254,7 +254,7 @@ globaloptions_cancel=(parent.w - 2 * (buttonWidth + 10)) (parent.h - buttonHeigh
|
||||||
globaloptions_ok=(prev.x2 + 10) prev.y prev.w prev.h
|
globaloptions_ok=(prev.x2 + 10) prev.y prev.w prev.h
|
||||||
|
|
||||||
### game options
|
### game options
|
||||||
gameoptions=23 94 globOptionsW (h - 23 - self.y)
|
gameoptions=insetX insetY insetW insetH
|
||||||
set_parent=gameoptions
|
set_parent=gameoptions
|
||||||
vBorder=20
|
vBorder=20
|
||||||
gox=10
|
gox=10
|
||||||
|
@ -382,8 +382,8 @@ scummsaveload_extinfo.visible=true
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
[chooser]
|
[chooser]
|
||||||
chooserW=(w - 2 * 8)
|
chooserW=insetW
|
||||||
chooser=((w - chooserW) / 2) ((h - opHeight) / 2) chooserW opHeight
|
chooser=insetX insetY chooserW opHeight
|
||||||
chooser_headline=10 6 (chooserW - 2 * 10) (kLineHeight)
|
chooser_headline=10 6 (chooserW - 2 * 10) (kLineHeight)
|
||||||
chooser_list=10 (6 + kLineHeight + 2) prev.w (opHeight - self.y - buttonHeight - 12)
|
chooser_list=10 (6 + kLineHeight + 2) prev.w (opHeight - self.y - buttonHeight - 12)
|
||||||
chooser_cancel=(chooserW - 2 * (buttonWidth + 10)) (opHeight - buttonHeight - 8) buttonWidth buttonHeight
|
chooser_cancel=(chooserW - 2 * (buttonWidth + 10)) (opHeight - buttonHeight - 8) buttonWidth buttonHeight
|
||||||
|
@ -456,38 +456,12 @@ smY=(smY + buttonHeight + scummmainVAddOff)
|
||||||
smY=(smY + scummmainVSpace)
|
smY=(smY + scummmainVSpace)
|
||||||
scummmain_options=prev.x smY prev.w prev.h
|
scummmain_options=prev.x smY prev.w prev.h
|
||||||
smY=(smY + buttonHeight + scummmainVAddOff)
|
smY=(smY + buttonHeight + scummmainVAddOff)
|
||||||
scummmain_help=prev.x smY prev.w prev.h
|
|
||||||
smY=(smY + buttonHeight + scummmainVAddOff)
|
|
||||||
scummmain_about=prev.x smY prev.w prev.h
|
scummmain_about=prev.x smY prev.w prev.h
|
||||||
smY=(smY + buttonHeight + scummmainVAddOff)
|
smY=(smY + buttonHeight + scummmainVAddOff)
|
||||||
|
scummmain_help=prev.x smY prev.w prev.h
|
||||||
|
smY=(smY + buttonHeight + scummmainVAddOff)
|
||||||
smY=(smY + scummmainVSpace)
|
smY=(smY + scummmainVSpace)
|
||||||
scummmain_quit=prev.x smY prev.w prev.h
|
scummmain_quit=prev.x smY prev.w prev.h
|
||||||
smH=(smY + buttonHeight + scummmainHOffset)
|
smH=(smY + buttonHeight + scummmainHOffset)
|
||||||
smW=(buttonWidth + 2 * scummmainHOffset)
|
smW=(buttonWidth + 2 * scummmainHOffset)
|
||||||
scummmain=((w - smW) / 2) ((h - smH) / 2) smW smH
|
scummmain=((w - smW) / 2) ((h - smH) / 2) smW smH
|
||||||
|
|
||||||
## 960xY modes
|
|
||||||
[960xY]
|
|
||||||
def_launcherX=23
|
|
||||||
def_widgetSize=kBigWidgetSize
|
|
||||||
def_buttonWidth=120
|
|
||||||
def_buttonHeight=25
|
|
||||||
def_sliderWidth=kBigSliderWidth
|
|
||||||
def_sliderHeight=kBigSliderHeight
|
|
||||||
def_kLineHeight=16
|
|
||||||
def_kFontHeight=14
|
|
||||||
def_globOptionsW=(w - buttonWidth - 17 * 2 - launcherX)
|
|
||||||
def_gameOptionsH=(h - 2 * 40)
|
|
||||||
def_gameOptionsLabelWidth=90
|
|
||||||
def_tabPopupsLabelW=110
|
|
||||||
def_aboutXOff=8
|
|
||||||
def_aboutYOff=5
|
|
||||||
def_aboutOuterBorder=80
|
|
||||||
def_scummmainHOffset=12
|
|
||||||
def_scummmainVSpace=15
|
|
||||||
def_scummmainVAddOff=5
|
|
||||||
def_scummhelpW=370
|
|
||||||
def_scummhelpX=((w - scummhelpW) / 2)
|
|
||||||
def_midiControlsSpacing=4
|
|
||||||
|
|
||||||
use=640xY
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue