Commit Graph
43 Commits
Author SHA1 Message Date
Max Horn 9217472f0e With this change, backends are now responsible for instantiating their OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently)
svn-id: r21557
2006-04-02 14:16:31 +00:00
Johannes Schickel d0b8efd575 - moves some code in ThemeNew.cpp (calcGradient and calcAlpha to the bottom)
- added possibility to use a shading effect on inactive dialogs (luminance and dim are builtin, and special ablility to specifiy a own expression, evaluated via the evaluator)
- adds also a color cache (atm it's generated on startup)
- uses luminance effect by default
- bumps theme config version to 7

svn-id: r21544
2006-04-02 00:56:21 +00:00
Eugene Sandulenko e373c9b7b5 - Revert my last change with moving addDefaultDirectory() from TheneNew.cpp
- Removed locking of further directory adds because it did not work for themes.

svn-id: r21452
2006-03-25 19:30:10 +00:00
Eugene Sandulenko f25d49f826 - Move AddDefaultDirectory() calls in somon engine to constructor
- Move AddDefaultDirectory() from NewTheme.cpp to main.cpp

svn-id: r21451
2006-03-25 19:18:09 +00:00
Eugene Sandulenko aa743f8920 Fix chechbox label alignment.
svn-id: r21433
2006-03-24 17:39:13 +00:00
Eugene Sandulenko 3e1afa4a2f o Rearranged options dialog
o Made button corners less round to match mock-ups

svn-id: r21423
2006-03-24 03:33:47 +00:00
Eugene Sandulenko a9b174abb3 Bump theme version number
svn-id: r21421
2006-03-24 01:26:25 +00:00
Eugene Sandulenko 3586905f93 Fix bug #1455213: "GUI: ExtraPath won't display" and turn theme version
into #define.

svn-id: r21395
2006-03-21 13:48:51 +00:00
Johannes Schickel 47a643ce40 Updates the config version for the new theme to 4 in the warning which is printed if the version is too low.
svn-id: r21393
2006-03-20 18:28:35 +00:00
Eugene Sandulenko fce18c2e13 Bump theme config version number to avod confusion. A key was added there,
but I didn't bump it last time.

svn-id: r21391
2006-03-20 12:32:55 +00:00
Eugene Sandulenko b45dcc4df3 Fix logo drawing.
svn-id: r21269
2006-03-14 02:55:54 +00:00
Eugene Sandulenko c9970b78b5 Rearrange launcher.
Logo is still shown weirdly.

svn-id: r21268
2006-03-14 02:19:38 +00:00
Eugene Sandulenko ebd5833335 WIP for arbitrary widget positions. See
http://wiki.scummvm.org/index.php/GUI_Themes
Code is not yet used.

svn-id: r21115
2006-03-07 03:31:31 +00:00
Johannes Schickel 4fb6c18f0e Oops, fixes problems with disabled widgets (they need full drawn shadows).
svn-id: r21083
2006-03-04 21:25:11 +00:00
Johannes Schickel 91fbb6b7ae Improved shadow drawing (it's faster now since it doesn't draw the whole rect like before)
'cleaned up' the drawSurfaceMasked function a bit.

svn-id: r21082
2006-03-04 20:45:59 +00:00
Johannes Schickel 6010d48a8e Removed colorToRGB and RGBToColor calls when calculating alpha
and disabled the complete new theme if 'DISABLE_FANCY_THEMES' is defined.

svn-id: r21078
2006-03-04 18:34:28 +00:00
Torbjörn Andersson 2cb8832991 Fixed redraw glitch. Our editable widgets were asking the theme to draw a very
wide caret. Changed that width to 1.

svn-id: r20842
2006-02-24 20:25:34 +00:00
Torbjörn Andersson 66b5b7b3f3 Cleanup.
svn-id: r20841
2006-02-24 19:38:16 +00:00
Johannes Schickel e067a7f288 Implemented new tab drawing, should look nicer now. (The border under the active tab isn't drawn anymore)
svn-id: r20669
2006-02-13 18:00:04 +00:00
Max Horn b34e207dbb Change CVS keywords to SVN keywords
svn-id: r20518
2006-02-11 10:08:56 +00:00
Eugene Sandulenko aae00f629c Change behaviour of checkboxes to more logical.
svn-id: r20416
2006-02-05 18:46:51 +00:00
Paweł Kołodziejski 2ebdbbf5e0 fixes allow compile with emsvc4 again
svn-id: r20355
2006-02-03 07:30:29 +00:00
Torbjörn Andersson d6e141cc35 Fix glitch when moving the mouse over a disabled, checked checkbox. (The
check mark would become brighter, and I think it was because a transparent
mark was drawn over a transparent mark, thus "amplifying" it.)

svn-id: r20344
2006-02-01 22:39:54 +00:00
Eugene Sandulenko 12133dfb4f Much improved how shadows look. However it is done with a really dirty
hack as tehre is lots of overdraw, abuse of shadow width and code
duplication. Anyway shadow drawing code will go to separate functioMuch improved how shadows look. However it is done with a really dirty
hack as tehre is lots of overdraw, abuse of shadow width and code
duplication. Anyway shadow drawing code will go to separate function.

svn-id: r20343
2006-02-01 16:42:42 +00:00
Johannes Schickel 129e7846b5 Implemented shadow drawing, also extended the theme config again
(new color entries for highlighted buttons and for other widgets).
Also added a 'highlight' check to the CheckBox widget.
Changed the PopUpDialog to use a shadow around itself.

svn-id: r20341
2006-02-01 15:11:39 +00:00
Johannes Schickel da9b8d71ae Fixes color bugs with the new theme when switching to fullscreen on Mac OS X.
svn-id: r20338
2006-01-31 21:31:31 +00:00
Johannes Schickel 1976ac6250 Adds more configureable options to the config file of the new theme,
also update the default theme zip file for that.
Also it changes the way the tab buttons get drawn, now they have
only rounded corners at the top.

svn-id: r20336
2006-01-31 19:35:33 +00:00
Torbjörn Andersson 484fca6549 Tabs look better with dialog surfaces than with widget surfaces. There's
still room for improvements, though...

svn-id: r20330
2006-01-31 09:45:36 +00:00
Torbjörn Andersson 74dd2e133d I didn't realize that disabled widgets were transparent, rather than just
faded. In those cases, I guess the background should be restored before
drawing. But that can probably be done in the drawSurface / drawRect
functions instead, like this.

svn-id: r20329
2006-01-31 08:41:51 +00:00
Torbjörn Andersson 9246a7a532 I assume this call to restoreBackground() is unnecessary.
svn-id: r20328
2006-01-31 08:03:21 +00:00
Chris Apers afaf1d0ab9 Replace use of sscanf
svn-id: r20311
2006-01-30 19:02:33 +00:00
Johannes Schickel e5e7587443 Ok this should fix now all problems with drawing bugs of texts.
svn-id: r20298
2006-01-29 16:12:59 +00:00
Johannes Schickel 7eaa5b99b5 Fixes redraw bugs with the about dialog and the new theme.
svn-id: r20297
2006-01-29 15:07:03 +00:00
Johannes Schickel f509762f99 Fixes transparency and enabled transparency for disabled buttons.
svn-id: r20295
2006-01-29 12:41:58 +00:00
Johannes Schickel f404f6ffaf Changed calcGradient again, should look nicer now.
svn-id: r20280
2006-01-28 23:56:12 +00:00
Johannes Schickel 8776ea6d18 Fixes a bug while loading the theme config from the zip file (now the caret should be black).
svn-id: r20277
2006-01-28 23:11:52 +00:00
Johannes Schickel 5fda0cc6f1 - Fixes a bug that the debugger crashed while opening
- Changed gradient calculating
- added background saving for all dialog/widget backgrounds for now (change that later maybe)
- changed ScummDialog to use the colors of our launcher dialog

svn-id: r20276
2006-01-28 23:03:39 +00:00
Johannes Schickel 0a40639af2 This should fix bug # 1416862 (new theme: changing overlay size).
svn-id: r20253
2006-01-27 23:13:51 +00:00
Eugene Sandulenko 095199da54 Proper RCS IDs.
svn-id: r20235
2006-01-27 19:04:15 +00:00
Eugene Sandulenko 118ce529b1 Fix crash on platforms which do not initialize memory with zeroes.
svn-id: r20234
2006-01-27 19:01:02 +00:00
Paweł Kołodziejski 4938b93f34 fixed warning
svn-id: r20231
2006-01-27 16:46:56 +00:00
Johannes Schickel 1f7bd7a726 Oops forgot to change calcColor to calcGradient before commiting.
svn-id: r20230
2006-01-27 15:59:29 +00:00
Johannes Schickel 5051b080a2 - adds the new gui renderer also a new implementation for the classic gui
- adds a ImageMan and ImageDec class for loading and managing image files
 - adds a loader for zip files which is used by the new theme and the image manager
 - changes the widgets to use the new gui code
 - changes the scumm dialogs to use the new gui code
 - fixes a #include problem in the sky debugger with the new gui code

 To use the new gui copy gui/themes/default-theme.zip to your extrapath.
If the theme zip can not be found the gui will fallback to the classic theme.
If you want to change the gui styles use "gui_theme=classic" for the classic theme
and "gui_theme=default-theme" for the new theme.

Thanks to eriktorbjorn for testing and help with the new theme and to sev for
reviewing this patch.

svn-id: r20227
2006-01-27 15:43:23 +00:00