Max Horn
651e2760a3
Fix spelling, cleanup
...
svn-id: r49843
2010-06-15 12:33:20 +00:00
Max Horn
f906c4e80f
GUI: Tweaked the launcher so that TAB switches focus between the list and the quick search field
...
svn-id: r41311
2009-06-06 23:22:48 +00:00
Eugene Sandulenko
eb92554db9
Fix bug #2791868 : "GUI: Glitch when closing menu after hovering on option"
...
svn-id: r40702
2009-05-18 21:02:52 +00:00
Vicent Marti
108d4cfbd0
Reverted previous commit.
...
svn-id: r36226
2009-02-06 23:28:08 +00:00
Vicent Marti
30189f09d9
Removed special case when redrawing the dialog stack. Fixes bug #2555710 and several lesser graphical glitches with classic theme.
...
svn-id: r36225
2009-02-06 22:16:04 +00:00
Eugene Sandulenko
83972e2001
Merge in Virtual Keybpard & KeyMapper branch,
...
- Merge is perfromed in order to not let rotting the code
- Makefile modifications were avoided
Stuff to resolve:
- Circular dependency of common/vkeybd from graphics/
- Make it compilable (?)
- Add some keyboards
- Decide on the key bindings
svn-id: r35813
2009-01-11 00:20:27 +00:00
Johannes Schickel
95074af35c
Fixed crash when returning to launcher from a 640x480 game running with a non 1x scaler.
...
svn-id: r35686
2009-01-02 22:10:00 +00:00
Johannes Schickel
690b88f982
Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> gui/GuiManager.h
...
svn-id: r35668
2009-01-02 03:21:40 +00:00
Johannes Schickel
4ec7876972
Reverted the handling of mouse move events, now the slider widget should be highlighted correctly again.
...
svn-id: r35667
2009-01-02 03:03:06 +00:00
Johannes Schickel
1b41a49fc5
Modified the way button highlights are processed when a widget is in 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-02 02:48:06 +00:00
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
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
6510226216
Renamed NewGui to GuiManager
...
svn-id: r35544
2008-12-25 23:55:36 +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
Max Horn
fa942c42cc
GUI: Got rid of most 'built-in' variables
...
svn-id: r35018
2008-11-12 12:53:53 +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
Stephen Kennedy
6b638f0e58
Bug fix: Widget removal from dialog now handled properly
...
svn-id: r33841
2008-08-13 19:16:04 +00:00
Vicent Marti
2b52383534
Finished legacy API cleanup. Removed all legacy code.
...
Possible regressions.
svn-id: r33833
2008-08-13 17:46:00 +00:00
Vicent Marti
21989844a9
Game Options menu parsing.
...
Added support for importing layouts inside other layouts.
Misc bugfixes.
svn-id: r33676
2008-08-07 10:53:33 +00:00
Vicent Marti
4256c35791
Options menu layout parsing, featuring the brand new FATPOPUPS.
...
svn-id: r33651
2008-08-05 23:58:45 +00:00
Vicent Marti
4645e706a8
Rendering pipeline (almost) fixed. This time for real.
...
svn-id: r33092
2008-07-17 21:58:43 +00:00
Johannes Schickel
0ec41a2d80
- made Widget::_flags private
...
- reworked state (enabled/disabled/highlighted) handling of widgets
- cleanup in ModernTheme.cpp
svn-id: r29403
2007-11-04 03:38:30 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
2243197f50
Changed GUI system to use Common::KeyState state
...
svn-id: r27786
2007-06-30 12:26:59 +00:00
Torbjörn Andersson
4305483ad0
Use KEYCODE constants.
...
svn-id: r27598
2007-06-22 07:49:02 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
f8067d54e5
Fixing some memory leaks in the GUI code
...
svn-id: r26515
2007-04-15 19:03:25 +00:00
Max Horn
a73c6c3670
Added new file gui/object.cpp (collecting GuiObject methods in there), and renamed Dialog::deleteWidget to Dialog::removeWidget (name was misleading, the removed object does *not* get deleted)
...
svn-id: r26147
2007-03-16 20:47:41 +00:00
Eugene Sandulenko
4e52f4438f
Fix bug #1595627 : "SCUMM: F5 crashes game (640x480)". This partially
...
reverts commit r24656 for fixing bug #1590596 and effectively fixes both.
svn-id: r24933
2006-12-27 00:47:57 +00:00
Max Horn
1a10cacfb9
Renamed handleScreenChanged() -> reflowLayout() in the GUI code
...
svn-id: r23662
2006-08-04 13:55:53 +00:00
Max Horn
76116f36dd
*Loads* of Common::String related optimizations. Woa, *tons* of methods were copying strings needlessly
...
svn-id: r22873
2006-06-03 13:33:39 +00:00
Torbjörn Andersson
984214a109
Let deleteWidget() check if it's deleting _mouseWidget, _focusedWidget or
...
_dragWidget. We don't want to keep references to the deleted widget.
svn-id: r22836
2006-06-02 15:20:48 +00:00
Torbjörn Andersson
09074b1685
More cleanup. We shouldn't need these widget size parameters either.
...
svn-id: r22799
2006-05-31 12:27:05 +00:00
Johannes Schickel
30787714d3
Started to prepare the gui for runtime resolution switches.
...
(some little things could be missing yet though)
svn-id: r22017
2006-04-19 01:05:28 +00:00
Eugene Sandulenko
5daa835cc7
- PopUpWidget (drop down list) does not shadow underlying dialog anymore
...
- Remove reduntant code in drawing pipeline. Topmost dialog was drawn
up to 4 times
svn-id: r21998
2006-04-18 00:37:04 +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
8a5f44d797
Converted last dialogs to new scheme. Now it seems to be everything. Please,
...
test throghoutly.
svn-id: r21157
2006-03-09 05:18:00 +00:00
Eugene Sandulenko
a8a8624511
o Converted most (all?) widgets to new scheme.
...
o Converted global options dialog to new scheme.
svn-id: r21137
2006-03-08 01:42:02 +00:00
Eugene Sandulenko
fc84c7fc1d
o More widgets fot alternative constructors
...
o Cleanup of launcher dialog
o Implemented useWithPrefix keyword
svn-id: r21131
2006-03-07 19:02:42 +00:00
Max Horn
b34e207dbb
Change CVS keywords to SVN keywords
...
svn-id: r20518
2006-02-11 10:08:56 +00:00
Johannes Schickel
5fda0cc6f1
- Fixes a bug that the debugger crashed while opening
...
- Changed gradient calculating
- added background saving for all dialog/widget backgrounds for now (change that later maybe)
- changed ScummDialog to use the colors of our launcher dialog
svn-id: r20276
2006-01-28 23:03:39 +00:00
Johannes Schickel
5051b080a2
- adds the new gui renderer also a new implementation for the classic gui
...
- adds a ImageMan and ImageDec class for loading and managing image files
- adds a loader for zip files which is used by the new theme and the image manager
- changes the widgets to use the new gui code
- changes the scumm dialogs to use the new gui code
- fixes a #include problem in the sky debugger with the new gui code
To use the new gui copy gui/themes/default-theme.zip to your extrapath.
If the theme zip can not be found the gui will fallback to the classic theme.
If you want to change the gui styles use "gui_theme=classic" for the classic theme
and "gui_theme=default-theme" for the new theme.
Thanks to eriktorbjorn for testing and help with the new theme and to sev for
reviewing this patch.
svn-id: r20227
2006-01-27 15:43:23 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Torbjörn Andersson
7dc3082a35
I don't think we need <ctype.h> here.
...
svn-id: r18448
2005-06-24 16:05:24 +00:00
Max Horn
8b1d7b9166
When including files from common/, explicitly use the common/ prefix
...
svn-id: r18444
2005-06-24 15:23:51 +00:00
Torbjörn Andersson
41f69db19f
Cleanup.
...
svn-id: r18324
2005-06-03 12:33:03 +00:00
Torbjörn Andersson
bf89c8a4b9
The GUI has reached the point where I think it's safe to begin removing the
...
old auto-scaling hack. Removed wantsScaling(), USE_AUTO_SCALING,
_scaleFactor and _scaleEnable.
Also removed drawBitmap() since we no longer use bitmaps for widget
decorations.
svn-id: r18310
2005-06-02 12:29:01 +00:00
Torbjörn Andersson
801db4a515
Added big editable text widget, and removed some cruft. I think this means
...
that all our widgets are able to scale themselves now, but I could be
mistaken.
svn-id: r18192
2005-05-20 15:03:26 +00:00
Torbjörn Andersson
81453854ee
Big version of the popup widget. It could use a bit more polish, though...
...
svn-id: r18185
2005-05-19 17:03:31 +00:00