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
f26f85ee96
GUI: Added Widget::setVisible convenience wrapper
...
svn-id: r35572
2008-12-27 14:36:28 +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
Jordi Vilalta Prat
f75893a294
Modify the SliderWidget value by using the mouse wheel
...
svn-id: r35513
2008-12-23 23:36:38 +00:00
Max Horn
c0f82d3518
Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with GUI::ThemeEngine::TextAlignVertical
...
svn-id: r35023
2008-11-12 14:30:16 +00:00
Max Horn
144be21bed
GUI: Got rid of the WidgetSize stuff
...
svn-id: r35022
2008-11-12 13:14:44 +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
Max Horn
0508fec8a8
Pushing down some header deps
...
svn-id: r34936
2008-11-08 01:30:32 +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
Torbjörn Andersson
1cb4578d2f
Cleanup.
...
svn-id: r30357
2008-01-09 21:15:34 +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
Eugene Sandulenko
4073e7f8f8
Proper implementation of ".enabled" theme widget property.
...
svn-id: r29282
2007-10-28 12:02:09 +00:00
Max Horn
2243197f50
Changed GUI system to use Common::KeyState state
...
svn-id: r27786
2007-06-30 12:26:59 +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
56b00f05cc
Replaced 'typedef Common::String String' with explicit usages of Common::String (mainly to make doxygen happy)
...
svn-id: r25360
2007-02-03 21:32:18 +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
09074b1685
More cleanup. We shouldn't need these widget size parameters either.
...
svn-id: r22799
2006-05-31 12:27:05 +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
Johannes Schickel
1d72b954c7
Introduces special switch for GraphicsWidget for use of theme transparency again.
...
svn-id: r22746
2006-05-29 14:55:43 +00:00
Johannes Schickel
0165c98e00
- adds option to fill GraphicsWidgets with a special color
...
- updates builtin theme config for my next commit
- bumps theme config
svn-id: r22743
2006-05-29 14:38:56 +00:00
Johannes Schickel
0a557cf2a4
- changes transparency parameter of Theme::drawSurface to alpha parameter.
...
- adds possibility to draw GraphicsWidgets with alpha values.
svn-id: r22738
2006-05-29 14:00: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
Eugene Sandulenko
e982782281
Fix bug #1483272 : "GUI: SCUMM pause dialog breaks upon scaler switch". Also
...
fix same problem in scumm help dialog.
svn-id: r22522
2006-05-18 16:44:44 +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
819033b649
o Move built-in evaluator constants to AssocArray to speed it up
...
o Introduced .align text widget property
o Moved all text widgets to use it and populated theme config file
svn-id: r21420
2006-03-24 01:24:26 +00:00
Eugene Sandulenko
c9970b78b5
Rearrange launcher.
...
Logo is still shown weirdly.
svn-id: r21268
2006-03-14 02:19:38 +00:00
Eugene Sandulenko
c3f91ca288
Converted all scumm dialogs to new scheme
...
svn-id: r21147
2006-03-09 01:08:25 +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
1eff73cb41
GUI widget positions:
...
o Add 'true' and 'false' constants
o add .visible widget property
o allow dots to be part of section and key names in configs
svn-id: r21123
2006-03-07 13:41:36 +00:00
Eugene Sandulenko
018c93b14a
More work on customizable GUI.
...
o Implemented special alias 'prev'
o Added new calling scheme to several widgets
o Partially converted launcher dialog to new scheme
o Converted couple widgets of chooser dialog
svn-id: r21118
2006-03-07 05:39:52 +00:00
Max Horn
b34e207dbb
Change CVS keywords to SVN keywords
...
svn-id: r20518
2006-02-11 10:08:56 +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
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +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
79241d323f
Start work on support for 'big' widgets
...
svn-id: r18060
2005-05-11 19:30:30 +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
Torbjörn Andersson
d0615eb956
Removed unnecessary semi-colons.
...
svn-id: r17418
2005-04-06 15:21:32 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
a9789acfc6
Moved Surface/Font code into new 'graphics' module
...
svn-id: r13357
2004-03-21 21:20:25 +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