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
4cc9d17c34
Adding various FIXME comments to bogus (non-self-explanatory) existing FIXME comments; and some other related cleanup
...
svn-id: r28890
2007-09-11 09:20:39 +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
Torbjörn Andersson
437bc950b6
Measure the "open time" from when the pop-up dialog was first drawn, not from
...
when it was created. This should fix bug #1667992 .
svn-id: r25887
2007-02-26 22:38:24 +00:00
Eugene Sandulenko
a0f5e6f0b1
Patch #1622564 : "Enhanced PopUp behaviour"
...
svn-id: r24931
2006-12-26 20:57:29 +00:00
Max Horn
4c14cf6d1a
Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files
...
svn-id: r23974
2006-09-23 00:42:35 +00:00
Max Horn
0485f76c8d
Changed GUI code to do 'lazy'/'just-in-time' reflowing, so that client code doesn't have to forward EVENT_SCREEN_CHANGED to us (this may initially cause some regressions, please report any induced crashes or oddities you observe to me)
...
svn-id: r23663
2006-08-04 15:48:37 +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
8975ba8963
Cleanup. We no longer need these widget size parameters.
...
svn-id: r22798
2006-05-31 12:09:00 +00:00
Eugene Sandulenko
b56c7b88d7
Major GUI update:
...
- Implemented padding in console
- Update only current line in console instead of whole screen
- Fixed caret positioning in edit text widget
- Improved buttons drawing, now they look more realistic
- Added label spacing in popup widget
- Correct shadow in popup widget
- Fixed up with selected popup widget being drawn on wrong tab
- Added shading to list dialog
- Adjusted shading of inactive widgets
- Proper coloring of browset (add game) dialog
- Introduced Container widget
- Used Container widget in scumm save/load dialog. Now it looks properly
- Adjusted button colors even more. Now they match almost perfectly albeit with banding
- Made scrollbar appear only when it is really needed
svn-id: r22670
2006-05-27 05:46:04 +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
Johannes Schickel
a9431edca2
- Fixed popup widget for --force-1x-overlay with new theme
...
- adds support for highlightened popupwidgets
svn-id: r22012
2006-04-18 18:50:07 +00:00
Johannes Schickel
1ae205a241
- adds own drawing function for (not expanded) popup widgets
...
- adds pixmaps, colorfades, and gradient factor for the (not expanded) popup widget in new theme
- bumps themeconfig version
svn-id: r22011
2006-04-18 18:40:33 +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
Eugene Sandulenko
924ec172ff
- Implemented text padding in ListWidget and PopUpWidget. Right padding does not work yet.
...
- Implemented highlisght padding in ListWidget
- Eval::getVar() method with default value
- Removed unused constructors for ListWidget and PoUpWidget
- cleanup
- bumped theme version
svn-id: r21934
2006-04-16 10:23:36 +00:00
Johannes Schickel
3ac923ba58
Fixes cutted texts with --force-1x-overlay.
...
svn-id: r21793
2006-04-11 15:45:21 +00:00
Max Horn
9f93e5bb81
Renamed various container isEmpty() methods to empty() to match STL conventions
...
svn-id: r21472
2006-03-28 09:42:54 +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
Max Horn
b34e207dbb
Change CVS keywords to SVN keywords
...
svn-id: r20518
2006-02-11 10:08:56 +00:00
Eugene Sandulenko
12133dfb4f
Much improved how shadows look. However it is done with a really dirty
...
hack as tehre is lots of overdraw, abuse of shadow width and code
duplication. Anyway shadow drawing code will go to separate functioMuch improved how shadows look. However it is done with a really dirty
hack as tehre is lots of overdraw, abuse of shadow width and code
duplication. Anyway shadow drawing code will go to separate function.
svn-id: r20343
2006-02-01 16:42:42 +00:00
Johannes Schickel
129e7846b5
Implemented shadow drawing, also extended the theme config again
...
(new color entries for highlighted buttons and for other widgets).
Also added a 'highlight' check to the CheckBox widget.
Changed the PopUpDialog to use a shadow around itself.
svn-id: r20341
2006-02-01 15:11: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
f14948eec0
Applied my patch #1263153 to work around bug #1243280 . It's not an ideal
...
solution, but should be good enough for 0.8.0 at least.
svn-id: r18709
2005-08-22 17:25:03 +00:00
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +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
14956529f6
Cleanup.
...
svn-id: r18316
2005-06-03 09:32:58 +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
Max Horn
1fde0d90f4
Fix popup widget in scaled GUI mode
...
svn-id: r17099
2005-03-12 15:29:16 +00:00
Max Horn
cffd917165
system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
...
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
ce8c99bf62
Rename remaining OSystem methods to match our coding guidelines
...
svn-id: r15332
2004-09-28 20:19:37 +00:00
Max Horn
a0bde7a732
Revamped the font code: now it's very easy to switch between the 'original' SCUMM font and any new font... or to have multiple different fonts (like, one for 320x240 and and one for 640x480); furthermore, font rendering can now be done w/o using NewGui
...
svn-id: r13243
2004-03-13 13:03:25 +00:00
Max Horn
7e3e79f41e
useful helper method (will be used for improved options dialog)
...
svn-id: r13237
2004-03-13 12:33:31 +00:00
Max Horn
f59eb3b219
renamed (Const)Iterator to (const_)iterator; changed size() to return an uint
...
svn-id: r12722
2004-02-05 00:19:57 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
22c22d1e81
added namespace GUI
...
svn-id: r11255
2003-11-10 23:40:48 +00:00
Paweł Kołodziejski
14b7d027a2
cleanup whitespaces
...
svn-id: r11223
2003-11-08 23:22:16 +00:00
Jonathan Gray
239aea0ff0
spelling fixes
...
svn-id: r11178
2003-11-07 02:31:44 +00:00
Max Horn
2c3b8c9b30
minor tweaks
...
svn-id: r11149
2003-11-05 11:24:37 +00:00
Max Horn
4581cdfe6c
tiny position tweaks
...
svn-id: r11078
2003-11-03 01:04:55 +00:00
Max Horn
9f3edb11c5
added a builtin label to PopUpWidget
...
svn-id: r11076
2003-11-03 01:00:26 +00:00
Max Horn
f0d2a1b91c
make coordinate calculation based on position of parent -> needed for nested widgets
...
svn-id: r11058
2003-11-02 17:41:01 +00:00
Max Horn
e9ae86bb76
introduced common base class GuiObject for Dialog/Widget -> step towards making it possible to nest widgets (needed for TabWidget)
...
svn-id: r11052
2003-11-02 14:50:53 +00:00
Max Horn
b27a871f87
turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)
...
svn-id: r11045
2003-11-02 02:18:16 +00:00