Johannes Schickel
6b225b40fa
Uses the special cursor color palette for the cursor now (this fixes problems with creation of thumbnails of the scumm engine)
...
svn-id: r22152
2006-04-25 15:20:46 +00:00
Travis Howell
d474595629
Fix valgrind warning
...
svn-id: r22065
2006-04-21 04:06:44 +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
1c65f3417a
Fixes problems with wrong colors on the overlay in scumm engine.
...
svn-id: r22024
2006-04-19 06:00:34 +00:00
Johannes Schickel
0a767b6467
Implements custom cursor support for the new theme and includes a standard cursor (it should be replaced though).
...
svn-id: r22019
2006-04-19 03:17:00 +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
58af73b344
Restores background before drawing a popupwidget.
...
svn-id: r22015
2006-04-18 19:52:12 +00:00
Johannes Schickel
96d23871b6
Oops forgot to use shadows for the PopUpWidget.
...
svn-id: r22013
2006-04-18 18:57:43 +00:00
Johannes Schickel
a9431edca2
- Fixed popup widget for --force-1x-overlay with new theme
...
- adds support for highlightened popupwidgets
svn-id: r22012
2006-04-18 18:50:07 +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
Max Horn
ea85e8c986
Moved ColorMasks to their own new header graphics/colormasks.h, so that both the scalers and the GUI code can access them. Also added (untested) entries for 1555, 444, 888 and 8888 modes
...
svn-id: r21966
2006-04-17 10:22:05 +00:00
Johannes Schickel
e9cbf5fcbd
- Moves Graphics::loadFont to Graphics::NewFont::loadFont
...
- adds code for caching of fonts (just for Graphics::NewFont)
- implements cache using in the modern theme for custom fonts
- adds cache file for current normal font in the theme zip file
svn-id: r21952
2006-04-16 19:54:39 +00:00
Eugene Sandulenko
924ec172ff
- Implemented text padding in ListWidget and PopUpWidget. Right padding does not work yet.
...
- Implemented highlisght padding in ListWidget
- Eval::getVar() method with default value
- Removed unused constructors for ListWidget and PoUpWidget
- cleanup
- bumped theme version
svn-id: r21934
2006-04-16 10:23:36 +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
1444a1ab9f
- No longer draws full shadows for disabled widgets
...
- Implements 'negativ alpha' values for drawSurfaceMasked (from -1 to -100, used to dim the pixels -1 means very very small dim -100 should be black)
- Changes drawSurfaceMasked to use macros for easy changing drawing code
svn-id: r21852
2006-04-13 22:47:22 +00:00
Johannes Schickel
f2370a0560
Deletes color cache and custom dialog shading.
...
svn-id: r21850
2006-04-13 22:20:50 +00:00
Johannes Schickel
e02625db6a
Speeds up calcGradient again a little bit.
...
Also this should fix a bug in getColorAlphaImpl (I'm not 100% sure if it was wrong before though)
svn-id: r21818
2006-04-12 03:01:06 +00:00
Johannes Schickel
3fab2f4898
- some little clean ups
...
- improves speed of the dimming effect (get's rid of divisions in favour of shifts)
- improves speed of calcGradient (nearlly twice as fast in my tests now)
svn-id: r21817
2006-04-12 02:27:56 +00:00
Johannes Schickel
4b8b7e2aed
Checks if something is drawn out of the screen in drawSurfaceMasked (fixes crashes with --force-1x-overlay)
...
svn-id: r21794
2006-04-11 16:05:59 +00:00
Johannes Schickel
a7a5f40cfc
- cleans up drawSurfaceMasked a little bit
...
- get rid of getColorAlpha in drawSurfaceMasked if no alpha blending is used
svn-id: r21792
2006-04-11 15:34:07 +00:00
Johannes Schickel
c3733105cc
Changed drawScrollbar to use drawShadow.
...
svn-id: r21791
2006-04-11 14:51:38 +00:00
Johannes Schickel
a06a28fa97
Implements saving the color cache to a file (much faster startup for custom effect + less memory while gui isn't shown)
...
svn-id: r21766
2006-04-10 17:32:04 +00:00
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