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
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
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
36e8989a6e
Cleanup
...
svn-id: r18318
2005-06-03 11:15:03 +00:00
Torbjörn Andersson
35dda2b636
Added big slider widget. There is nothing in the widget itself that's
...
dependent on size, so the two different sizes are handled through a new
addSlider() function.
Figuring out why the big widget won't let you set volume to 0 is left as an
exercise for the reader.
svn-id: r18170
2005-05-18 15:58:39 +00:00
Max Horn
81287495e9
Remove duplicate _ws member
...
svn-id: r18164
2005-05-18 10:30:52 +00:00
Max Horn
4c9761592a
Remove the label code from SliderWidget (simplifies it a lot); instead use a StaticTextWidget for the label
...
svn-id: r18163
2005-05-18 10:24:02 +00:00
Torbjörn Andersson
16a1f8814b
Big version of the checkbox widget.
...
svn-id: r18154
2005-05-18 07:23:21 +00:00
Max Horn
8c3085eb2b
Center button label vertically, too (possible now that the GUI scaling is off)
...
svn-id: r18117
2005-05-15 18:22:17 +00:00
Torbjörn Andersson
8e7c4ffa37
Quick fix to make button texts etc. draw at the correct position. (They
...
were being drawn at unscaled coordinates.) I don't know if this is the
correct fix, but the change is small and easy to revert, if need be.
svn-id: r18072
2005-05-12 15:46:03 +00:00
Max Horn
79241d323f
Start work on support for 'big' widgets
...
svn-id: r18060
2005-05-11 19:30:30 +00:00
Max Horn
74aed6382b
cleanup
...
svn-id: r17980
2005-05-08 23:39:37 +00:00
Max Horn
3279513b64
A simple widget which renders any 16 bit graphics surface given to it (part of patch #1163026 )
...
svn-id: r17977
2005-05-08 22:38:29 +00:00
Max Horn
caf142657d
setLabel should probably cause an automatic redraw...
...
svn-id: r17638
2005-04-16 17:53:18 +00:00
Max Horn
858c6c4d5b
Switching GUI to an alternate font; using a second, bigger, font for 640x480 games like COMI. Note: we can always easily switch back to the SCUMM font or any other font, if we want to
...
svn-id: r16467
2005-01-06 22:48:42 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
a40ed29abd
Renamed _clickedWidget -> _dragWidget; if a drag is in process, send the mouse moved / mouse up events to the widget on which the drag is performed (this fixes at least one bug and improves the user experience)
...
svn-id: r16362
2004-12-28 21:07:34 +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
c6752cccf5
renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
...
svn-id: r13087
2004-02-28 12:58:13 +00:00
Nicolas Bacca
1cbefa8e21
Revert old change - proper fix is to avoid playing in portrait mode :)
...
svn-id: r12605
2004-01-26 07:37:41 +00:00
Nicolas Bacca
9f3515be30
Add comment for checkbox CE tweak
...
svn-id: r12522
2004-01-19 20:34:54 +00:00
Nicolas Bacca
f2f77cbfdf
Small tweak for the checkbox control on CE
...
svn-id: r12478
2004-01-18 13:50:50 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
b8c0fbf06e
new font code (currently disabled by default), which allows using 'arbitrary' BDF fonts (via convbdf)
...
svn-id: r11350
2003-11-19 23:46:39 +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
Max Horn
a93c9f49ba
added checkboxes to the 'Edit Game...' dialog which let the user determine whether to override global settings or not; besides other things, this fixes bug #837599 (Default volume is 0 for newly added games)
...
svn-id: r11196
2003-11-07 16:01:51 +00:00
Max Horn
fcf6d6613d
enable StaticTextWidget by default; make CheckboxWidget::handleMouseUp send the checkbox state along with its command
...
svn-id: r11193
2003-11-07 15:05:14 +00:00
Max Horn
435fe749d7
draw StaticTextWidget differently if disabled
...
svn-id: r11192
2003-11-07 14:58:12 +00:00
Max Horn
767fc87148
fixed memory leak in TabWidget
...
svn-id: r11191
2003-11-07 14:50:32 +00:00
Max Horn
8a8743a042
removed PushButtonWidget
...
svn-id: r11120
2003-11-03 23:33:40 +00:00
Max Horn
9f3edb11c5
added a builtin label to PopUpWidget
...
svn-id: r11076
2003-11-03 01:00:26 +00:00
Max Horn
cfd658cd29
added built-in label for SliderWidget
...
svn-id: r11075
2003-11-03 00:43:29 +00:00
Max Horn
1d9ac7b91b
more changes to allow widget nesting to fully work
...
svn-id: r11068
2003-11-02 22:31:20 +00:00
Max Horn
ac4b9ccdb8
refactored code in Dialog::findWidget to Widget::findWidgetInChain; changed NewGui::box() to take colors as param (instead of hard coding _color and _shadowColor)
...
svn-id: r11061
2003-11-02 18:57:20 +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
Max Horn
72699c3d2b
fixed Widget::draw for bordered items to adjust _h; removed unused label param from SliderWidget constructor; cleanup
...
svn-id: r11041
2003-11-01 22:21:18 +00:00
Paweł Kołodziejski
e5e117006a
back disable warnings into stdafx.h, vc6 is lack of warnings support
...
svn-id: r9337
2003-07-31 18:35:01 +00:00
Jamieson Christian
c5de745580
Disabled unknown pragma warning in MSVC-6.
...
svn-id: r9320
2003-07-31 06:47:05 +00:00
Max Horn
26d05c0190
the VC warning for unknown pragmas is now gloabally disabled, no need to work around it locally
...
svn-id: r9300
2003-07-30 18:40:28 +00:00
Torbjörn Andersson
4fb4626ac9
Variable initializations in SliderWidget
...
svn-id: r7786
2003-05-21 16:18:41 +00:00
Max Horn
3b1d4e4c06
Make it possible to disable popups/checkboxes
...
svn-id: r6864
2003-03-26 12:30:20 +00:00
Paweł Kołodziejski
aa3766018f
updated copyrights headers
...
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
1ff9749b87
and more cleanup .... Last
...
svn-id: r6721
2003-03-06 19:52:54 +00:00
Max Horn
f6de146c5e
changed the slider widget, better suited to represent volume settings this way (IMO)
...
svn-id: r5918
2002-12-12 23:21:29 +00:00