aboutsummaryrefslogtreecommitdiff
path: root/gui
AgeCommit message (Collapse)Author
2009-01-02Fix compilation on Mac OS X; tiny simplificationMax Horn
svn-id: r35688
2009-01-02Cleanup.Johannes Schickel
svn-id: r35687
2009-01-02Fixed crash when returning to launcher from a 640x480 game running with a ↵Johannes Schickel
non 1x scaler. svn-id: r35686
2009-01-02- Moved theme listing code from GuiManager to ThemeEngineJohannes Schickel
- 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- Fixed --gui-theme command line descriptionJohannes Schickel
- Added --list-themes command line command to list available GUI themes svn-id: r35681
2009-01-02- Added support selection of themes via a basename again (This should fix ↵Johannes Schickel
bugs #2473213 "GUI: Theme selection oddities and regressions" and #2219605 "GUI: theme detection") - Changed default value to "scummmodern" instead of "scummmodern.zip" for "gui_theme" - Moved theme listing code from ThemeBrowser to GuiManager svn-id: r35680
2009-01-02Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> ↵Johannes Schickel
gui/GuiManager.h svn-id: r35668
2009-01-02Reverted the handling of mouse move events, now the slider widget should be ↵Johannes Schickel
highlighted correctly again. svn-id: r35667
2009-01-02Modified the way button highlights are processed when a widget is in ↵Johannes Schickel
dragging mode. This allows for example unhighlighting of a button when the user clicked on it but moved the mouse away. svn-id: r35666
2009-01-02GUI: Redraw screen ASAP if the theme was changedMax Horn
svn-id: r35665
2009-01-02GUI: Create the _themeArchive once and then keep it; also do not reload ↵Max Horn
theme bitmaps needlessly svn-id: r35663
2009-01-02Got rid of GuiManager::clearDragWidget instead handle it via a new widget ↵Johannes Schickel
flag WIDGET_IGNORE_DRAG. svn-id: r35662
2009-01-02GUI: Fix the recent regression where starting games directly (bypassing the ↵Max Horn
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-01Fixed a typo in a comment, plus some slight re-wording.Torbjörn Andersson
svn-id: r35655
2009-01-01cleanupMax Horn
svn-id: r35654
2009-01-01Revamping the handling of GUI themes a bit:Max Horn
* 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-01Added two FIXMEs to global options dialog, related to theme selectionMax Horn
svn-id: r35650
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2009-01-01Restore the text background of pop-up widgets to fix the glitch on classic ↵Jordi Vilalta Prat
theme when changing the option with the mouse wheel svn-id: r35647
2008-12-31ThemeEngine:Max Horn
* 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-31cleanupMax Horn
svn-id: r35635
2008-12-31Proper fix: Readded the const keyword, together with the missing data type ↵Filippos Karapetis
in ThemeEngine.h svn-id: r35634
2008-12-31Removed "const" keyword from kDrawDataDefaults. MSVC complains that "'const' ↵Filippos Karapetis
static/global data initialized with compiler generated default constructor fills the object with zeros", in ThemeEngine.h line 123 svn-id: r35632
2008-12-31ThemeEngine changes:Max Horn
* 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-29Fix for ""LAUNCHER: "(Mass) Add" buttons + built-in GUI = buggy"" (bug ID ↵Vicent Marti
2472185) svn-id: r35617
2008-12-29Updated Theme Package generator to work with Python 2.6-3.0 (push Python ↵Vicent Marti
forward!) svn-id: r35613
2008-12-29Changed PSP graphic modes to use low resolution themes (possible fix for bug ↵Vicent Marti
ID 2458134) svn-id: r35612
2008-12-281) Add the KeysDialog layout to the modern theme. 2) Improve somewhat the ↵Kostas Nakos
layout of the KeysDialog svn-id: r35592
2008-12-28Made the F6 and F5 (SCUMM only) menus fit in 320x200. I'd appreciate if someoneTorbjörn Andersson
who's more familiar with this could look at my changes, in case I messed up. svn-id: r35589
2008-12-27Renamed some stuffMax Horn
svn-id: r35574
2008-12-27GuiManager::runLoop: do not call OSystem::quit() when receiving EVENT_QUIT, ↵Max Horn
just return to the caller instead svn-id: r35573
2008-12-27GUI: Added Widget::setVisible convenience wrapperMax Horn
svn-id: r35572
2008-12-27Got rid of ThemeLayout::getDialogData; added some comments, asserts; moved ↵Max Horn
getParentW & getParentH to class ThemeLayoutStacked svn-id: r35571
2008-12-26Fix for the SliderWidget glitch when showing very small values (and ↵Jordi Vilalta Prat
potentially for other small widgets) svn-id: r35557
2008-12-26If more than 8 items have to be resized in a stacked theme layout, abort ↵Max Horn
with an error (instead of silently trashing the stack) svn-id: r35549
2008-12-26Merged ThemeLayoutHorizontal and ThemeLayoutVertical into a new class ↵Max Horn
ThemeLayoutStacked (suggestions for a better name are welcome); stored padding data in a Common::Rect svn-id: r35548
2008-12-26ThemeLayout::getParentW was calling getHeight instead of getWidth by mistake ↵Max Horn
(though this didn't seem to cause any problems anywhere... ?) svn-id: r35547
2008-12-26Fix for bug #2210082: GUI: Crash in GMM when changing scale factorMax Horn
svn-id: r35546
2008-12-26Some 'cleanup' of Gui::ThemeLayoutMax Horn
svn-id: r35545
2008-12-25Renamed NewGui to GuiManagerMax Horn
svn-id: r35544
2008-12-24Added valueToBarWidth to calculate SliderWidget's bar width like it was done ↵Jordi Vilalta Prat
before (as discussed with LordHoto) svn-id: r35519
2008-12-24Removed Ender from SCUMM credits (matching other retired team members, like ↵Max Horn
ludde and yazor) svn-id: r35517
2008-12-24Added FIXME in ThemeEngine::drawSlider.Johannes Schickel
svn-id: r35515
2008-12-23Modify the PopUpWidget selection by using the mouse wheelJordi Vilalta Prat
svn-id: r35514
2008-12-23Modify the SliderWidget value by using the mouse wheelJordi Vilalta Prat
svn-id: r35513
2008-12-22Tweaked the Modern theme colors to make it look more like it did in the old ↵Jordi Vilalta Prat
renderer svn-id: r35490
2008-12-22Changed the game chooser to make the game candidates not editable and ↵Jordi Vilalta Prat
selectable by pressing enter svn-id: r35489
2008-12-22Fixed indentation and removed whitespaces at the end of lineJordi Vilalta Prat
svn-id: r35481
2008-12-22Allow the disabled state of the popup widget to be themedJordi Vilalta Prat
svn-id: r35480
2008-12-17Added KeyConfiguration dialog to classic theme(320 and normal). Updated ↵Lars Persson
KeysDialog to follow xml syntax properly. svn-id: r35416