Commit Graph

43 Commits

Author SHA1 Message Date
Lars Persson
247ea5d5f4 Remove Deinit when hiding menu! UI infoprints needed the pixelbuffer.
svn-id: r34021
2008-08-19 07:44:35 +00:00
Lars Persson
ca3dcdfd4e Do Deinit of pixel buffer when hiding menu.That saves 600KB in VGA games for low memory devices.
svn-id: r34000
2008-08-18 18:16:24 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Johannes Schickel
0ec41a2d80 - made Widget::_flags private
- reworked state (enabled/disabled/highlighted) handling of widgets
- cleanup in ModernTheme.cpp

svn-id: r29403
2007-11-04 03:38:30 +00:00
Johannes Schickel
75a5c41ab4 - starting to document the theme renderer
- Theme::closeDialog -> Theme::closeAllDialogs, since it would remove every dialog currently

svn-id: r29394
2007-11-04 00:30:53 +00:00
Eugene Sandulenko
61c96353cf Patch v5.2 from #1752243: "backends lib patches"
svn-id: r29283
2007-10-28 12:04:38 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Johannes Schickel
956affd3d2 Moved definition of ThemeClassic and ThemeModern to their own files.
svn-id: r25432
2007-02-08 23:25:07 +00:00
Eugene Sandulenko
90aa1d1852 Fix valgrind warning on unitialized variable.
svn-id: r24675
2006-11-11 07:49:05 +00:00
Johannes Schickel
7e731d7b4c Cleanup.
svn-id: r24240
2006-10-08 21:25:06 +00:00
Johannes Schickel
6474c8cabf Oops...
svn-id: r24238
2006-10-08 21:23:48 +00:00
Johannes Schickel
cb0e8b577d Fixed disabled blending for classic theme.
svn-id: r24237
2006-10-08 21:15:38 +00:00
Johannes Schickel
7721c0d039 Make modern and classic theme config files use the same version number.
svn-id: r24236
2006-10-08 21:03:19 +00:00
Johannes Schickel
16276155b6 Adding option to enable/disable blending for the classic theme.
svn-id: r24234
2006-10-08 20:46:09 +00:00
Johannes Schickel
3e59682e34 Displaying the theme name instead of the theme config file name in the 'Misc' section of the Options dialog.
svn-id: r24231
2006-10-08 20:08:00 +00:00
Johannes Schickel
e11bfe5f49 - reworked my commit for r24216, not 'Classic (Builtin)' uses the builtin classic theme and classic uses the classic.ini file
- save the chosen theme now

svn-id: r24222
2006-10-08 19:24:31 +00:00
Johannes Schickel
1ced1777f8 - Forcing 'classic' as the builtin classic theme (which means it ignores the classic.ini atm)
svn-id: r24216
2006-10-08 18:49:25 +00:00
Johannes Schickel
25486c789e - added auto detection of the Theme style to use
- fixed a bug which would lead to a crash when loading the modern theme config with the classic theme

svn-id: r24201
2006-10-08 12:00:19 +00:00
Johannes Schickel
9c88c9d9ed Ooops. making the classic theme working without a config again.
svn-id: r24200
2006-10-08 11:03:46 +00:00
Johannes Schickel
5e5a221b0e - added config file support for the classic theme
- added a sample config file (called 'classic.ini', which is based on Theme::_defaultConfigINI)
- added check for the type of the theme config file ('modern' and 'classic' for the respective Theme classes)
- bumped theme config version for the modern theme

svn-id: r24199
2006-10-08 10:57:48 +00:00
Max Horn
4fcdbb9349 String class usage cleanup
svn-id: r23582
2006-07-23 15:08:48 +00:00
Johannes Schickel
d2bd1de292 Reverting here too.
svn-id: r23253
2006-06-21 22:30:33 +00:00
Johannes Schickel
3116a69adf Ok after a few checks this is how it should be (fixing problems with my last commits).
svn-id: r23251
2006-06-21 21:52:16 +00:00
Johannes Schickel
9cb6196508 Oops fixes problem introduced with last commit.
svn-id: r23250
2006-06-21 21:44:13 +00:00
Johannes Schickel
034676f33a Commits fix for crashing about dialog mentioned my Marucs on -devel.
svn-id: r23248
2006-06-21 21:35:40 +00:00
Eugene Sandulenko
021159724d Fix drawing of tab widget. Now it matches mock-ups. Added tab scrolling.
svn-id: r23116
2006-06-15 02:14:40 +00:00
Johannes Schickel
793151a0aa Implements new Tab drawing for modern theme (nearlly matches mockups now)
svn-id: r23106
2006-06-14 16:29:56 +00:00
Max Horn
c0805830eb Fix various typenames to comply to the ScummVM coding guidelines
svn-id: r22928
2006-06-05 12:22:51 +00:00
Johannes Schickel
1d72b954c7 Introduces special switch for GraphicsWidget for use of theme transparency again.
svn-id: r22746
2006-05-29 14:55:43 +00:00
Johannes Schickel
0a557cf2a4 - changes transparency parameter of Theme::drawSurface to alpha parameter.
- adds possibility to draw GraphicsWidgets with alpha values.

svn-id: r22738
2006-05-29 14:00:00 +00:00
Johannes Schickel
f3e74f88de - Fixes disabled transparency for classic theme.
- Introduces check for define 'CT_NO_TRANSPARENCY' to disable transparency support.

svn-id: r22735
2006-05-29 13:12:04 +00:00
Johannes Schickel
ba82b4a235 Fixes widget drawing for classic theme.
svn-id: r22734
2006-05-29 13:06:28 +00:00
Eugene Sandulenko
b56c7b88d7 Major GUI update:
- Implemented padding in console
- Update only current line in console instead of whole screen
- Fixed caret positioning in edit text widget
- Improved buttons drawing, now they look more realistic
- Added label spacing in popup widget
- Correct shadow in popup widget
- Fixed up with selected popup widget being drawn on wrong tab
- Added shading to list dialog
- Adjusted shading of inactive widgets
- Proper coloring of browset (add game) dialog
- Introduced Container widget
- Used Container widget in scumm save/load dialog. Now it looks properly
- Adjusted button colors even more. Now they match almost perfectly albeit with banding
- Made scrollbar appear only when it is really needed

svn-id: r22670
2006-05-27 05:46:04 +00:00
Johannes Schickel
9e734b0851 Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it recives a EVENT_SCREEN_CHANGED.
svn-id: r22025
2006-04-19 06:22:15 +00:00
Johannes Schickel
30787714d3 Started to prepare the gui for runtime resolution switches.
(some little things could be missing yet though)

svn-id: r22017
2006-04-19 01:05:28 +00:00
Johannes Schickel
1ae205a241 - adds own drawing function for (not expanded) popup widgets
- adds pixmaps, colorfades, and gradient factor for the (not expanded) popup widget in new theme
- bumps themeconfig version

svn-id: r22011
2006-04-18 18:40:33 +00:00
Johannes Schickel
96cf7028b9 - implements .bdf font loader based on convbdf (sure could have some clean up)
- adds three different font styles to the themes (normal, bold (default one), italic)
- implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section)
- changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though)
- extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName)
- adds the font style constans to the builtin constants for the evaluator)

svn-id: r21868
2006-04-14 02:16:55 +00:00
Johannes Schickel
ea6c62ba3d Draws the same border for 'kWidgetBackgroundPlain' as for 'kWidgetBackgroundBorderSmall'.
This fixes missing border in the pop up widget.

svn-id: r21796
2006-04-11 16:32:03 +00:00
Johannes Schickel
521697be01 Fixes disappearing borders with classic theme.
svn-id: r21795
2006-04-11 16:28:00 +00:00
Johannes Schickel
12374accc3 Makes classic theme compile without OLDGUI_TRANSPARENCY again.
svn-id: r21790
2006-04-11 14:16:15 +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
aa743f8920 Fix chechbox label alignment.
svn-id: r21433
2006-03-24 17:39:13 +00:00
Eugene Sandulenko
e60c0441ad theme.cpp -> ThemeClassic.cpp for consistency and less confusion
svn-id: r21363
2006-03-18 12:43:50 +00:00