214 Commits

Author SHA1 Message Date
Vicent Marti
341873c9d3 Third attemp at fixing release-critical #2472185. Also fixes regression reported in #2555710.
svn-id: r36227
2009-02-07 00:23:53 +00:00
Max Horn
5556fc7f72 Changed Graphics::ImageDecoder to allow custom PixelFormats
svn-id: r36026
2009-01-23 23:50:54 +00:00
Max Horn
14c5bbbccf Renamed Archive::openFile to createReadStreamForMember
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
9861afd8fd Renamed ArchiveMember::open -> createReadStream, and made it a cv member (const); same for Archive::openFile
svn-id: r36020
2009-01-23 04:36:18 +00:00
Max Horn
cc1efb9137 Fix buggy images in GUI when switching overlay mode (e.g. on Mac OS X when toggline full screen and windowed mode)
svn-id: r36001
2009-01-22 18:45:06 +00:00
Max Horn
abc06ca18e Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
svn-id: r35993
2009-01-22 04:35:10 +00:00
Max Horn
c9e97bf6f9 GUI: Some cleanup and renaming; moved some parsing code from ThemeEngine to ThemeParser
svn-id: r35898
2009-01-18 14:48:00 +00:00
Max Horn
20dad9e967 Merged gui/ThemeData.cpp into ThemeEngine.cpp
svn-id: r35881
2009-01-17 17:13:04 +00:00
Max Horn
42d4ddf934 Removed unused & incomplete widget caching code
svn-id: r35880
2009-01-17 16:57:50 +00:00
Jordi Vilalta Prat
ab82db8f86 Use the current palette size for the theme mouse cursor instead of using the maximum (fixes a valgrind warning)
svn-id: r35857
2009-01-14 02:44:09 +00:00
Vicent Marti
d638ddd3d6 Fixed release critical bug #2472185. All transparent buttons should now properly refresh their text when changed between redrawing frames. This includes the launcher "Add game" button and the options "subtitle mode" button.
svn-id: r35789
2009-01-08 18:09:13 +00:00
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
Max Horn
6a7e4e3c15 Fix compilation on Mac OS X; tiny simplification
svn-id: r35688
2009-01-02 22:29:13 +00:00
Johannes Schickel
3558cf0e5e Cleanup.
svn-id: r35687
2009-01-02 22:16:33 +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
903f52cff8 GUI: Create the _themeArchive once and then keep it; also do not reload theme bitmaps needlessly
svn-id: r35663
2009-01-02 01:32:40 +00:00
Max Horn
e6b9a3e476 GUI: Fix the recent regression where starting games directly (bypassing the launcher) would result in a black screen; also reinit the theme (which each time causes the full XML data to be parsed) less often
svn-id: r35661
2009-01-02 01:23:17 +00:00
Max Horn
3851bda05f cleanup
svn-id: r35654
2009-01-01 21:52:15 +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
Jordi Vilalta Prat
05d3633eb3 Restore the text background of pop-up widgets to fix the glitch on classic theme when changing the option with the mouse wheel
svn-id: r35647
2009-01-01 08:14: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
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
Vicent Marti
a4f2be4638 Fix for ""LAUNCHER: "(Mass) Add" buttons + built-in GUI = buggy"" (bug ID 2472185)
svn-id: r35617
2008-12-29 20:33:09 +00:00
Jordi Vilalta Prat
d18d2d72a8 Fix for the SliderWidget glitch when showing very small values (and potentially for other small widgets)
svn-id: r35557
2008-12-26 12:15:51 +00:00
Johannes Schickel
ff45c8aa65 Added FIXME in ThemeEngine::drawSlider.
svn-id: r35515
2008-12-24 00:05:42 +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
a28b531ed0 Added ArchiveMember::getDisplayName() method; changed ArchiveMember::getName() to always return a name compatible with Archive::openFile()
svn-id: r35139
2008-11-21 12:17:35 +00:00
Johannes Schickel
4368081c55 Fixed ZipArchive/FSDirectory creation.
svn-id: r35133
2008-11-20 18:25:22 +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
Max Horn
32526079aa Include required header
svn-id: r34985
2008-11-10 12:45:09 +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
f5b70114ca Removed many unnecessary #includes
svn-id: r34959
2008-11-09 15:14:01 +00:00
Max Horn
7cbd04dc23 Thou shalst never use the 'using' keyword in a header file, lest the wrath of ye fingolfin will crush your sorrow bones to dust... *grrr* ;)
svn-id: r34937
2008-11-08 01:34:02 +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
edf9f24926 Got rid of OSystem::colorToRGB and RGBToColor; added implementations for OSystem::getOverlayFormat to several ports (pending testing by the porters)
svn-id: r34912
2008-11-06 15:02:50 +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
Max Horn
9e74c41dbd Fix comment
svn-id: r34880
2008-11-03 16:00:52 +00:00
Max Horn
78221818e4 Documented & cleaned up ThemeEngine::createCursor
svn-id: r34879
2008-11-03 16:00:13 +00:00
Max Horn
188da3547f Instead of allocating (and leaking, in case of an error) a 64k table with at most 256 entries, use a HashMap
svn-id: r34878
2008-11-03 15:15:32 +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
Kari Salminen
4d4042df36 Shut up MSVC and add FIXMEs to Sword's listSaves and ThemeEngine's loadThemeXML.
svn-id: r34839
2008-10-22 20:29:17 +00:00
Johannes Schickel
7d331b7341 Committed updated version of my patch #2184529 "SearchSet: Get rid of SharedPtr usage".
svn-id: r34837
2008-10-22 17:44:12 +00:00
Vicent Marti
6e8adf4ea6 Fixed: Invisible debugger console text in Classic theme.
svn-id: r34816
2008-10-18 01:44:12 +00:00
Vicent Marti
46b036ab6a ImageManager: Added support for generic archives (zips and folders).
Theme Font Loading: Added support for generic archives.
ThemeEngine: Removed dependency on Common::File and File::AddDefaultPath for image and font loading.

svn-id: r34815
2008-10-18 01:27:33 +00:00