Commit Graph
128 Commits
Author SHA1 Message Date
Johannes Schickel ec631ba7f1 - Prevented full theme search when "builtin" theme was specified
- Only do a recursive search for themes with depth 1 in '.'

svn-id: r35706
2009-01-03 16:24:10 +00:00
Johannes Schickel 1d2c446395 - Moved theme listing code from GuiManager to ThemeEngine
- Only show builtin theme in theme list if GUI_ENABLE_BUILTIN_THEME is defined
- Introduced _themeFile to ThemeEngine again and changed _themeId to store the basename of the theme

svn-id: r35684
2009-01-02 21:24:13 +00:00
Max Horn 97e9b28c8a Revamping the handling of GUI themes a bit:
* Moved the code which handles fallback to the built-in theme from ThemeEngine to GuiManager
* Changed ThemeEngine::init() to only init&load the theme; no more messing with the overlay
* Commented to a somewhat obscure line in the GuiManager event loop (taking eriktorbjorn's original commit message for that change as comment text)
* Cleaned up the way the Dialog constructor ensures that the current Theme is correctly setup
* Got rid of varios members of ThemeEngine
* Changed ThemeEngine members _screen and _backBuffer from Surface pointers to just plain Surfaces
* Changed ThemeEngine::loadFontFromArchive to use _themeArchive instead of creating an Archive from scratch
* Renamed ThemeEngine::getThemeFileName() to getThemeId() (and some associated tweaks)
* Lots of further cleanup and tweaks

svn-id: r35653
2009-01-01 21:41:55 +00:00
Eugene Sandulenko 696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn 167a9cb767 ThemeEngine:
* more cleanup, esp. of Doxygen comments
* completely got rid of ImageMan, instead use the same Common::Archive to load bitmaps and XML data from

svn-id: r35636
2008-12-31 15:07:30 +00:00
Filippos Karapetis 587a691b12 Proper fix: Readded the const keyword, together with the missing data type in ThemeEngine.h
svn-id: r35634
2008-12-31 14:54:30 +00:00
Filippos Karapetis 9f0a401047 Removed "const" keyword from kDrawDataDefaults. MSVC complains that "'const' static/global data initialized with compiler generated default constructor fills the object with zeros", in ThemeEngine.h line 123
svn-id: r35632
2008-12-31 14:37:22 +00:00
Max Horn be73014f67 ThemeEngine changes:
* removed lots of dead code / methods
* fixed bad Doxygen comments (they were attached to the wrong member variables)
* some cleanup

svn-id: r35631
2008-12-31 14:10:23 +00:00
Jordi Vilalta Prat b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Jordi Vilalta Prat 2ec51ef358 Allow the disabled state of the popup widget to be themed
svn-id: r35480
2008-12-22 10:31:01 +00:00
Max Horn f974a6c8d5 GUI: Blitting the full screen to the backbuffer (or vice versa) can be done with a single memcpy, which is a bit faster than using _vectorRenderer->blitSurface
svn-id: r35029
2008-11-12 22:23:19 +00:00
Max Horn c0f82d3518 Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with GUI::ThemeEngine::TextAlignVertical
svn-id: r35023
2008-11-12 14:30:16 +00:00
Vicent Marti b98f89c7f0 Merged GUI::Theme and Gui::ThemeEngine into the same class, GUI::ThemeEngine.
Massive cleanup.

svn-id: r34983
2008-11-10 11:24:55 +00:00
Max Horn 1ad8e59c12 minor tweaks
svn-id: r34961
2008-11-09 15:59:14 +00:00
Max Horn cb581c61b2 Partially merge classes Theme and ThemeEngine (saves another couple KB), somebody (Tanoku?) should do a proper merge
svn-id: r34951
2008-11-09 12:38:30 +00:00
Max Horn 0508fec8a8 Pushing down some header deps
svn-id: r34936
2008-11-08 01:30:32 +00:00
Max Horn 2071f606a9 Moved some internal stuff from ThemeEngine.h to ThemeEngine.cpp
svn-id: r34935
2008-11-08 00:54:58 +00:00
Max Horn 817d2078cc Some cleanup / handle the case where the themepath is neither pointing to a dir nor to a .zip file
svn-id: r34897
2008-11-04 19:49:26 +00:00
Nicola Mettifogo 33b6bc4215 Reordered initialization lists to kill a ton of warnings.
svn-id: r34892
2008-11-04 05:29:53 +00:00
Johannes Schickel 2ec5515e89 Store names for renderer configuration in config file instead of integers.
svn-id: r34867
2008-10-29 20:45:28 +00:00
Johannes Schickel 98b0c4b33c Committed my patch from -devel, which reintroduces DISABLE_FANCY_THEMES to strip functionallity in theme renderer uneeded by small devices.
svn-id: r34864
2008-10-29 19:48:15 +00:00
Vicent Marti fccf455bcc Bugfix: Dirty rectangle out of range when blitting into the overlay.
svn-id: r34862
2008-10-29 18:57:42 +00:00
Max Horn 4a56e0d9c1 Merged ThemeEngine::themeEval() and ThemeEngine::evaluator() methods into a single getEvaluator() method
svn-id: r34789
2008-10-12 22:25:35 +00:00
Max Horn 1b3952fbab Don't force inline on big funcs if you don't have to (in this case, it added 24k to the binary size for no good reason)
svn-id: r34783
2008-10-12 22:03:35 +00:00
Max Horn c39175d2ec GUI ThemeEngine changes:
- removed unused typedefs
- fixed some typos
- got rid of pointless parser() method
- unified theme XML loading code for Zip files and regular directories

svn-id: r34774
2008-10-11 22:14:47 +00:00
Vicent Marti 2c775d851b Added global ingame menu definitions to theme files.
svn-id: r34608
2008-09-20 12:36:58 +00:00
Max Horn 6893418942 Fixing some compiler warnings
svn-id: r34341
2008-09-05 11:32:23 +00:00
Vicent Marti dcc72fe29e Massive refactoring/cleanup on the theme engine/parser.
svn-id: r34285
2008-09-02 17:51:08 +00:00