diff options
author | Eugene Sandulenko | 2010-06-15 10:52:35 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-06-15 10:52:35 +0000 |
commit | 01f9006ee7e8d0fd153f42fb00afbc25c4804d2b (patch) | |
tree | 774725290301c00c9e362a38fd917ea9b28db978 /gui/themes | |
parent | ea7405d7ef177a547d840424497d2f7ffd72626b (diff) | |
download | scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.tar.gz scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.tar.bz2 scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.zip |
GUI: Implement tooltips. FR #2821513.
FR #2821513: "GUI: add tooltips".
Added tooltips for Add Game button, clear field buttons and couple
other.
Current problem: Only first call correctly restores text. I could
not find where restore information gets lost.
svn-id: r49774
Diffstat (limited to 'gui/themes')
-rw-r--r-- | gui/themes/default.inc | 14 | ||||
-rw-r--r-- | gui/themes/scummclassic.zip | bin | 55147 -> 55660 bytes | |||
-rw-r--r-- | gui/themes/scummclassic/classic_gfx.stx | 9 | ||||
-rw-r--r-- | gui/themes/scummclassic/classic_layout.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummclassic/classic_layout_lowres.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummmodern.zip | bin | 162581 -> 162933 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_gfx.stx | 7 | ||||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout_lowres.stx | 4 |
9 files changed, 43 insertions, 3 deletions
diff --git a/gui/themes/default.inc b/gui/themes/default.inc index 17294703f4..1009f31816 100644 --- a/gui/themes/default.inc +++ b/gui/themes/default.inc @@ -27,6 +27,9 @@ "<font id='text_normal' " "file='default' " "/> " +"<font id='tooltip_normal' " +"file='builtinConsole' " +"/> " "<text_color id='color_normal' " "color='green' " "/> " @@ -411,6 +414,11 @@ "bevel='2' " "/> " "</drawdata> " +"<drawdata id='widget_small' cache='false'> " +"<drawstep func='square' " +"stroke='0' " +"/> " +"</drawdata> " "</render_info> " "<layout_info resolution='-320xY,-256x240,-Xx272'> " "<globals> " @@ -425,6 +433,9 @@ "<def var='KeyMapper.Spacing' value='10'/> " "<def var='KeyMapper.LabelWidth' value='100'/> " "<def var='KeyMapper.ButtonWidth' value='80'/> " +"<def var='Tooltip.MaxWidth' value='100'/> " +"<def var='Tooltip.XDelta' value='16'/> " +"<def var='Tooltip.YDelta' value='16'/> " "<widget name='OptionsLabel' " "size='110,Globals.Line.Height' " "textalign='right' " @@ -1181,6 +1192,9 @@ "<def var='KeyMapper.Spacing' value='5'/> " "<def var='KeyMapper.LabelWidth' value='80'/> " "<def var='KeyMapper.ButtonWidth' value='60'/> " +"<def var='Tooltip.MaxWidth' value='70'/> " +"<def var='Tooltip.XDelta' value='8'/> " +"<def var='Tooltip.YDelta' value='8'/> " "<widget name='Button' " "size='72,16' " "/> " diff --git a/gui/themes/scummclassic.zip b/gui/themes/scummclassic.zip Binary files differindex cc288765ac..3f3f9cee37 100644 --- a/gui/themes/scummclassic.zip +++ b/gui/themes/scummclassic.zip diff --git a/gui/themes/scummclassic/classic_gfx.stx b/gui/themes/scummclassic/classic_gfx.stx index e107c1f04d..05040751f9 100644 --- a/gui/themes/scummclassic/classic_gfx.stx +++ b/gui/themes/scummclassic/classic_gfx.stx @@ -52,6 +52,9 @@ <font id = 'text_normal' file = 'default' /> + <font id = 'tooltip_normal' + file = 'builtinConsole' + /> <text_color id = 'color_normal' color = 'green' @@ -486,4 +489,10 @@ bevel = '2' /> </drawdata> + + <drawdata id = 'widget_small' cache = 'false'> + <drawstep func = 'square' + stroke = '0' + /> + </drawdata> </render_info> diff --git a/gui/themes/scummclassic/classic_layout.stx b/gui/themes/scummclassic/classic_layout.stx index 9f241c06e5..e4a31e0971 100644 --- a/gui/themes/scummclassic/classic_layout.stx +++ b/gui/themes/scummclassic/classic_layout.stx @@ -41,6 +41,10 @@ <def var = 'KeyMapper.LabelWidth' value = '100'/> <def var = 'KeyMapper.ButtonWidth' value = '80'/> + <def var = 'Tooltip.MaxWidth' value = '100'/> + <def var = 'Tooltip.XDelta' value = '16'/> <!-- basically cursor size --> + <def var = 'Tooltip.YDelta' value = '16'/> + <widget name = 'OptionsLabel' size = '110, Globals.Line.Height' textalign = 'right' diff --git a/gui/themes/scummclassic/classic_layout_lowres.stx b/gui/themes/scummclassic/classic_layout_lowres.stx index 19fbb2d0bd..c994968677 100644 --- a/gui/themes/scummclassic/classic_layout_lowres.stx +++ b/gui/themes/scummclassic/classic_layout_lowres.stx @@ -42,6 +42,10 @@ <def var = 'KeyMapper.LabelWidth' value = '80'/> <def var = 'KeyMapper.ButtonWidth' value = '60'/> + <def var = 'Tooltip.MaxWidth' value = '70'/> + <def var = 'Tooltip.XDelta' value = '8'/> <!-- basically cursor size --> + <def var = 'Tooltip.YDelta' value = '8'/> + <widget name = 'Button' size = '72, 16' /> diff --git a/gui/themes/scummmodern.zip b/gui/themes/scummmodern.zip Binary files differindex 1f3a017b45..22e8ccaa90 100644 --- a/gui/themes/scummmodern.zip +++ b/gui/themes/scummmodern.zip diff --git a/gui/themes/scummmodern/scummmodern_gfx.stx b/gui/themes/scummmodern/scummmodern_gfx.stx index 13f9cd2196..3ed915200a 100644 --- a/gui/themes/scummmodern/scummmodern_gfx.stx +++ b/gui/themes/scummmodern/scummmodern_gfx.stx @@ -114,6 +114,9 @@ <font id = 'text_normal' file = 'helvr12-l1.bdf' /> + <font id = 'tooltip_normal' + file = 'builtinConsole' + /> <text_color id = 'color_normal' color = 'black' @@ -649,10 +652,8 @@ /> </drawdata> - <!-- Where is it used? --> <drawdata id = 'widget_small' cache = 'false'> - <drawstep func = 'roundedsq' - radius = '6' + <drawstep func = 'square' stroke = '0' gradient_start = 'blandyellow' gradient_end = 'xtrabrightred' diff --git a/gui/themes/scummmodern/scummmodern_layout.stx b/gui/themes/scummmodern/scummmodern_layout.stx index dfc2fcee8d..1488967a9c 100644 --- a/gui/themes/scummmodern/scummmodern_layout.stx +++ b/gui/themes/scummmodern/scummmodern_layout.stx @@ -48,6 +48,10 @@ <def var = 'KeyMapper.LabelWidth' value = '100'/> <def var = 'KeyMapper.ButtonWidth' value = '80'/> + <def var = 'Tooltip.MaxWidth' value = '100'/> + <def var = 'Tooltip.XDelta' value = '16'/> <!-- basically cursor size --> + <def var = 'Tooltip.YDelta' value = '32'/> + <widget name = 'OptionsLabel' size = '110, Globals.Line.Height' textalign = 'right' diff --git a/gui/themes/scummmodern/scummmodern_layout_lowres.stx b/gui/themes/scummmodern/scummmodern_layout_lowres.stx index 49dc6c03a0..079da11c34 100644 --- a/gui/themes/scummmodern/scummmodern_layout_lowres.stx +++ b/gui/themes/scummmodern/scummmodern_layout_lowres.stx @@ -48,6 +48,10 @@ <def var = 'KeyMapper.LabelWidth' value = '80'/> <def var = 'KeyMapper.ButtonWidth' value = '60'/> + <def var = 'Tooltip.MaxWidth' value = '70'/> + <def var = 'Tooltip.XDelta' value = '9'/> <!-- basically cursor size --> + <def var = 'Tooltip.YDelta' value = '18'/> + <widget name = 'OptionsLabel' size = '100, Globals.Line.Height' textalign = 'right' |