Commit Graph

722 Commits

Author SHA1 Message Date
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
Max Horn
9f93e5bb81 Renamed various container isEmpty() methods to empty() to match STL conventions
svn-id: r21472
2006-03-28 09:42:54 +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
7569f796ec Fix crash in Options dialog in 320xY mode. Shadow was drawn off-screen
svn-id: r21438
2006-03-24 18:10:41 +00:00
Max Horn
f433bdb566 Removed obsolete test stuff from my credits description :-)
svn-id: r21435
2006-03-24 17:40:34 +00:00
Eugene Sandulenko
aa743f8920 Fix chechbox label alignment.
svn-id: r21433
2006-03-24 17:39:13 +00:00
Max Horn
7307c4cb3d - moved type aa_ref_t into AssocArray, improving code readability a bit
- added new "operator[] const" method, useful when accessing const instances
- removed the default value (if you access an entry without first checking that
  it is actually there, it's your own fault)
- replaced 'index' with 'key' which seems more logical and avoids troubles with
  certain systems that #define index in their system headers

svn-id: r21430
2006-03-24 15:39:07 +00:00
Max Horn
08ad918af6 Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) to a minimum
svn-id: r21426
2006-03-24 14:15:45 +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
dabcc4cc9b Check values loaded from theme INI and give meaningful errors instead of
bad crashes on blitting stage.

svn-id: r21422
2006-03-24 01:45:03 +00:00
Eugene Sandulenko
a9b174abb3 Bump theme version number
svn-id: r21421
2006-03-24 01:26:25 +00:00
Eugene Sandulenko
819033b649 o Move built-in evaluator constants to AssocArray to speed it up
o Introduced .align text widget property
o Moved all text widgets to use it and populated theme config file

svn-id: r21420
2006-03-24 01:24:26 +00:00
Eugene Sandulenko
5d1b4d8f78 Implementation of AssociativeArray. Transferred GUI to it. Now it is much
faster.

svn-id: r21419
2006-03-23 22:59:38 +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
Willem Jan Palenstijn
cbf3c06c1d adding self to credits
svn-id: r21368
2006-03-18 15:51:09 +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
Eugene Sandulenko
0b0ea17e3c Remove trailing whitespaces
svn-id: r21362
2006-03-18 12:43:00 +00:00
Eugene Sandulenko
30c7070564 Oops. Theme variables are meant to be case insensitive. Fix comparison
function.

svn-id: r21361
2006-03-18 12:42:24 +00:00
Eugene Sandulenko
a483083f35 Tweaked a little scumm main dialog and scumm save/load dialog. Still plenty
to do.

svn-id: r21271
2006-03-14 03:52:29 +00:00
Eugene Sandulenko
60793c0e64 Positioned logo properly, added different version number rendering and
got rid of antialiasing artifacts

svn-id: r21270
2006-03-14 03:08:14 +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
94f5bd81ad Fix Chooser dialog.
svn-id: r21266
2006-03-13 23:18:22 +00:00
Lars Persson
96e87cdfe7 Moved typedef Common::String into class declaration.
svn-id: r21187
2006-03-09 22:40:21 +00:00