Commit Graph

1509 Commits

Author SHA1 Message Date
Johannes Schickel
e7bf64744b Got rid of GuiManager::clearDragWidget instead handle it via a new widget flag WIDGET_IGNORE_DRAG.
svn-id: r35662
2009-01-02 01:31:46 +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
Torbjörn Andersson
685f1f985f Fixed a typo in a comment, plus some slight re-wording.
svn-id: r35655
2009-01-01 22:15:21 +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
Max Horn
c62efbcab3 Added two FIXMEs to global options dialog, related to theme selection
svn-id: r35650
2009-01-01 17:02:45 +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
693b9df098 cleanup
svn-id: r35635
2008-12-31 15:03:17 +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
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
Vicent Marti
49976794c4 Updated Theme Package generator to work with Python 2.6-3.0 (push Python forward!)
svn-id: r35613
2008-12-29 16:22:52 +00:00
Vicent Marti
e432dad215 Changed PSP graphic modes to use low resolution themes (possible fix for bug ID 2458134)
svn-id: r35612
2008-12-29 16:17:51 +00:00
Kostas Nakos
25ac7c7fb0 1) Add the KeysDialog layout to the modern theme. 2) Improve somewhat the layout of the KeysDialog
svn-id: r35592
2008-12-28 20:15:00 +00:00
Torbjörn Andersson
ab2297e28b Made the F6 and F5 (SCUMM only) menus fit in 320x200. I'd appreciate if someone
who's more familiar with this could look at my changes, in case I messed up.

svn-id: r35589
2008-12-28 16:53:57 +00:00
Max Horn
c5cabc7b2a Renamed some stuff
svn-id: r35574
2008-12-27 16:09:08 +00:00
Max Horn
1d099c0d40 GuiManager::runLoop: do not call OSystem::quit() when receiving EVENT_QUIT, just return to the caller instead
svn-id: r35573
2008-12-27 16:07:10 +00:00
Max Horn
f26f85ee96 GUI: Added Widget::setVisible convenience wrapper
svn-id: r35572
2008-12-27 14:36:28 +00:00
Max Horn
69f4b7a383 Got rid of ThemeLayout::getDialogData; added some comments, asserts; moved getParentW & getParentH to class ThemeLayoutStacked
svn-id: r35571
2008-12-27 14:30:30 +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
Max Horn
751df013e1 If more than 8 items have to be resized in a stacked theme layout, abort with an error (instead of silently trashing the stack)
svn-id: r35549
2008-12-26 01:13:08 +00:00
Max Horn
131cb5a05a Merged ThemeLayoutHorizontal and ThemeLayoutVertical into a new class ThemeLayoutStacked (suggestions for a better name are welcome); stored padding data in a Common::Rect
svn-id: r35548
2008-12-26 01:08:49 +00:00
Max Horn
c59f5919a2 ThemeLayout::getParentW was calling getHeight instead of getWidth by mistake (though this didn't seem to cause any problems anywhere... ?)
svn-id: r35547
2008-12-26 00:57:30 +00:00
Max Horn
c9105aa58f Fix for bug #2210082: GUI: Crash in GMM when changing scale factor
svn-id: r35546
2008-12-26 00:43:52 +00:00
Max Horn
c3aec16033 Some 'cleanup' of Gui::ThemeLayout
svn-id: r35545
2008-12-26 00:26:34 +00:00
Max Horn
6510226216 Renamed NewGui to GuiManager
svn-id: r35544
2008-12-25 23:55:36 +00:00
Jordi Vilalta Prat
bce76931d3 Added valueToBarWidth to calculate SliderWidget's bar width like it was done before (as discussed with LordHoto)
svn-id: r35519
2008-12-24 01:11:58 +00:00
Max Horn
1c238fe1e1 Removed Ender from SCUMM credits (matching other retired team members, like ludde and yazor)
svn-id: r35517
2008-12-24 00:18:46 +00:00
Johannes Schickel
ff45c8aa65 Added FIXME in ThemeEngine::drawSlider.
svn-id: r35515
2008-12-24 00:05:42 +00:00
Jordi Vilalta Prat
604b8f08b6 Modify the PopUpWidget selection by using the mouse wheel
svn-id: r35514
2008-12-23 23:47:16 +00:00
Jordi Vilalta Prat
f75893a294 Modify the SliderWidget value by using the mouse wheel
svn-id: r35513
2008-12-23 23:36:38 +00:00
Jordi Vilalta Prat
d1530fcf18 Tweaked the Modern theme colors to make it look more like it did in the old renderer
svn-id: r35490
2008-12-22 18:34:43 +00:00
Jordi Vilalta Prat
382a46ffc4 Changed the game chooser to make the game candidates not editable and selectable by pressing enter
svn-id: r35489
2008-12-22 15:40:11 +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
Lars Persson
a56af219d9 Added KeyConfiguration dialog to classic theme(320 and normal). Updated KeysDialog to follow xml syntax properly.
svn-id: r35416
2008-12-17 21:19:46 +00:00
Lars Persson
4e2565ca1f Set SMALL SCREEN DEVICE settings in ::open function with new UI framework
svn-id: r35404
2008-12-16 22:54:38 +00:00
Eugene Sandulenko
8b60af5330 Add Tucker engine to credits
svn-id: r35361
2008-12-14 14:19:23 +00:00
Jordi Vilalta Prat
b66a9d4e03 Added Groovie credits
svn-id: r35219
2008-12-03 15:04:15 +00:00
Max Horn
46482b4de8 News update: Ender stepping down as project lead
svn-id: r35202
2008-12-01 21:50:34 +00:00
Max Horn
b25257d4eb Added Cyx to SCUMM credits
svn-id: r35169
2008-11-28 11:56:08 +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
Max Horn
33dd58ca98 GUI: Simplify ThemeBrowser code
svn-id: r35138
2008-11-21 08:22:33 +00:00
Johannes Schickel
4368081c55 Fixed ZipArchive/FSDirectory creation.
svn-id: r35133
2008-11-20 18:25:22 +00:00
Max Horn
7e97205417 GUI: Reduce space used by credits
svn-id: r35127
2008-11-20 13:46:34 +00:00
Vicent Marti
149345e13f Moved binary theme parser to tools folder.
svn-id: r35049
2008-11-13 19:58:04 +00:00
Vicent Marti
313cba75b1 DrawStep parsing added to binary theme parser.
svn-id: r35048
2008-11-13 19:56:26 +00:00