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
af8b2d83f7
Oops again. removed unneeded entry.
...
svn-id: r22023
2006-04-19 05:50:03 +00:00
Johannes Schickel
87c6abdd68
Oops forgot to commit changes here with last commit.
...
svn-id: r22022
2006-04-19 05:48:08 +00:00
Johannes Schickel
ff421d5adc
Prepairs merge of SaveLoadChooser and SaveLoadChooserEx of the scumm engine.
...
svn-id: r22020
2006-04-19 05:46:21 +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
1e15027885
Fixes "aspect ratio" text in the options with --force-1x-overlay.
...
svn-id: r22014
2006-04-18 19:04:15 +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
Eugene Sandulenko
5daa835cc7
- PopUpWidget (drop down list) does not shadow underlying dialog anymore
...
- Remove reduntant code in drawing pipeline. Topmost dialog was drawn
up to 4 times
svn-id: r21998
2006-04-18 00:37:04 +00:00
Eugene Sandulenko
1c9c14011b
Tame colors a bit to match GUI mock-ups
...
svn-id: r21997
2006-04-18 00:34:57 +00:00
Johannes Schickel
955b53fb88
Fixes bug with wrong colors in the logo after a screen change. (this time it works!)
...
svn-id: r21984
2006-04-17 18:50: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
b99632831f
This should fix wrong colors of the scummvm logo in the new theme after screen change.
...
svn-id: r21953
2006-04-16 20:33:52 +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
Max Horn
74edd90aba
Fix for bug #1471383 : Instead of overloading ConfigManager::set, we now have new setInt and setBool methods (matching getInt/getBool), which avoids strange quirks & bugs caused by (char *) being implicitly cast to int (ouch)
...
svn-id: r21951
2006-04-16 19:23:14 +00:00
Eugene Sandulenko
08b9cd7922
Remove redundant code. soundfont is taken care in OptionsDialog::open() now.
...
svn-id: r21950
2006-04-16 18:32:28 +00:00
Eugene Sandulenko
9de4b02b5c
Patch #1469722 : "Game-specific SoundFont configuration broken"
...
svn-id: r21949
2006-04-16 18:17:53 +00:00
Max Horn
555a568e59
Fixed some breakage in the 'Add Game' code I recently introduced; added a FIXME comment regarding the 'description' config file key
...
svn-id: r21943
2006-04-16 13:58:11 +00:00
Max Horn
206fdf0528
Fixed broken svn:keywords values
...
svn-id: r21939
2006-04-16 13:01:41 +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
Max Horn
ad45318328
Removed GameDetector::_gameid in favor of using a config manager entry
...
svn-id: r21915
2006-04-15 17:39:14 +00:00
Max Horn
1eb526f71a
Instead of calling our main them 'default-theme', call it 'modern' and reserve the gui theme name 'default' to indicate, well, the *default* theme, whatever that is
...
svn-id: r21887
2006-04-14 13:20:39 +00:00
Johannes Schickel
53f81b3366
Sets up standard normal font.
...
svn-id: r21869
2006-04-14 02:21:38 +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
Lars Persson
1d265f1895
Commiting Fingolfins patch to remove gamedetector usage.
...
svn-id: r21830
2006-04-12 19:04:10 +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
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
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
3ac923ba58
Fixes cutted texts with --force-1x-overlay.
...
svn-id: r21793
2006-04-11 15:45:21 +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
12374accc3
Makes classic theme compile without OLDGUI_TRANSPARENCY again.
...
svn-id: r21790
2006-04-11 14:16:15 +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
b75be44d06
Sev now is project lead, too
...
svn-id: r21728
2006-04-09 14:51:47 +00:00
Max Horn
bec09d3094
Turned FSList::sort into a generic function which can be applied to anything which implements comparable iterators (like Array, List, or plain C arrays)
...
svn-id: r21617
2006-04-04 23:55:47 +00:00
Eugene Sandulenko
fca43f1eeb
Initialize uninitialized variable.
...
svn-id: r21609
2006-04-04 22:32:43 +00:00
Max Horn
77555809b6
Use iterator API to iterate over all entries in the file list
...
svn-id: r21601
2006-04-04 21:16:53 +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
70cc7b8c26
- changed standard inactive dialog effect to dim with 30% instead of luminance
...
svn-id: r21546
2006-04-02 01:08:16 +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
8a5df05aa0
Hide eval debug output deeper to level 5. Report total number of defined
...
variables.
svn-id: r21521
2006-03-31 23:51:19 +00:00
Max Horn
f4339ff6c4
- Renamed class AssocArray to HashMap to match our existing class Map (note also
...
that many STL implementations have a class hash_map next to class map, too)
- Changed some static File class member vars to be normal static variables, in
yet another attempt to reduce header dependencies (in this case on hashmap.h)
svn-id: r21473
2006-03-28 10:05:25 +00:00