991 Commits

Author SHA1 Message Date
Max Horn
cb50b454e7 Use full path in #include guard, to avoid name clashes; also, to declare constants, enum is preferred over #define (causes less hard-to-debug errors)
svn-id: r22885
2006-06-03 15:01:37 +00:00
Travis Howell
576ff326b0 Typo
svn-id: r22879
2006-06-03 14:03:08 +00:00
Travis Howell
f7810b53a8 Add credit for Feeble Files source code
svn-id: r22876
2006-06-03 14:00:04 +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
ca84620745 When the screen changes, redraw all dialogs *immediately* rather than waiting
for the main loop to check for _needRedraw. Otherwise subsequent events can
cause widgets to be redrawn before the theme has had a chance to re-open the
dialogs, and this could cause at least the modern theme to crash.

svn-id: r22860
2006-06-03 10:48:37 +00:00
Eugene Sandulenko
05871836b9 Turn AliasesMap and VariablesMap keys from String to const char *.
Stats before:
Strings: 12048
mallocs: 55629
after:
Strings: 6370
mallocs: 42117
Here Strings are non-empty strings. Mallocs are string-related mallocs
including mallocs in HashMap BaseNode.

svn-id: r22841
2006-06-02 17:51:20 +00:00
Eugene Sandulenko
eabca87697 Optimize string usage a tiny bit more
svn-id: r22839
2006-06-02 16:06:17 +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
Max Horn
9686e5a3be Optimize GUI string usage a tiny bit more
svn-id: r22828
2006-06-02 07:20:04 +00:00
Willem Jan Palenstijn
f33a2e2f31 reduce number of string allocations
svn-id: r22823
2006-06-01 22:50:05 +00:00
Willem Jan Palenstijn
39451e9947 small optimization in evaluator variable lookup
svn-id: r22822
2006-06-01 22:44:43 +00:00
Eugene Sandulenko
f59017c979 Credit Clem and Raina for forum themes
svn-id: r22802
2006-05-31 18:44: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
Torbjörn Andersson
8975ba8963 Cleanup. We no longer need these widget size parameters.
svn-id: r22798
2006-05-31 12:09:00 +00:00
Torbjörn Andersson
9aa7eec0f6 Update _tabHeight on screen changes.
svn-id: r22791
2006-05-31 08:52:20 +00:00
Eugene Sandulenko
7094405116 Fix About dialog in PSP theme
svn-id: r22782
2006-05-30 18:55:41 +00:00
Eugene Sandulenko
148995dc2d Slight adjustment to list height in PSP theme so it will not have ugly empty
space between last list item and widget edge.

svn-id: r22780
2006-05-30 18:48:16 +00:00
Eugene Sandulenko
1ec42e169e Fixes for MM NES resolution:
- Introduce useAsIs keyword for resolution aliases
- Extend skipFor keyword to accept multiple values

svn-id: r22779
2006-05-30 18:36:08 +00:00
Joost Peters
ac1b601429 override some widget settings for launcher on 480x272
svn-id: r22778
2006-05-30 18:27:04 +00:00
Eugene Sandulenko
9852a3b808 Fix game options in PSP theme
svn-id: r22777
2006-05-30 18:05:13 +00:00
Eugene Sandulenko
7e656e7274 Fix global options on PSP theme
svn-id: r22776
2006-05-30 17:57:44 +00:00
Eugene Sandulenko
b13e157c16 Put volume controls conditionally into separate tab. Used by PSP theme.
svn-id: r22775
2006-05-30 17:49:53 +00:00
Eugene Sandulenko
b6a56e0795 - Split global audio tab into audio and volume
- More logical order in game options tab

svn-id: r22774
2006-05-30 17:35:57 +00:00
Johannes Schickel
94272b6ba8 Should fix drawing on systems with alpha mask.
svn-id: r22773
2006-05-30 16:48:15 +00:00
Eugene Sandulenko
411264238a Narrow buttons for PSP resolution for better look.
svn-id: r22771
2006-05-30 12:42:51 +00:00
Eugene Sandulenko
a46fe65378 A quick hack to let PSP gui use bigger fonts. Proper solution is to add
possibility to specify font for each widget class

svn-id: r22770
2006-05-30 12:29:32 +00:00
Eugene Sandulenko
0284becc9d GUI theme for PSP-specific resolution
svn-id: r22768
2006-05-30 12:07:47 +00:00
Max Horn
865b48e095 Added sections for infrastructure and GUI to the credits file. These are badly incomplete; folks, please add yourself as appropriate
svn-id: r22766
2006-05-30 10:08:02 +00:00
Eugene Sandulenko
5bbe44cd50 Fix bug #1496582 "GUI: Default graphics mode not committing".
svn-id: r22763
2006-05-30 01:41:49 +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
975dd5f1fa - updates new theme config
svn-id: r22744
2006-05-29 14:39:31 +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
2dd94dd247 Oops this reverts my last commit. :/
svn-id: r22742
2006-05-29 14:30:21 +00:00
Johannes Schickel
c37d69df56 - comments out getColorAlphaImp2
- adds note in getColorAlpha about we handle negative alpha values currently (could be removed when getColorAlphaImp2 get's fixed)

svn-id: r22741
2006-05-29 14:21:07 +00:00
Johannes Schickel
bdceb581fd - cleanup
- uses working getColorAlphaImpl for alpha == 0 in getColorAlpha

svn-id: r22740
2006-05-29 14:16:52 +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
Johannes Schickel
af25e65c31 Removes leftover comment.
svn-id: r22737
2006-05-29 13:24:49 +00:00
Johannes Schickel
fbc55218f1 - Fixes list position after screen change.
svn-id: r22736
2006-05-29 13:21:56 +00:00
Johannes Schickel
f3e74f88de - Fixes disabled transparency for classic theme.
- Introduces check for define 'CT_NO_TRANSPARENCY' to disable transparency support.

svn-id: r22735
2006-05-29 13:12:04 +00:00
Johannes Schickel
ba82b4a235 Fixes widget drawing for classic theme.
svn-id: r22734
2006-05-29 13:06:28 +00:00
Torbjörn Andersson
7f1eafea96 Don't "tickle" a dialog until after it has had a chance to redraw itself,
otherwise it may be in an inconsistent state since the modern theme uses
openDialog() to allocate a surface as large as he dialog itself.

This fixes a crash when changing to a bigger scaler when the About dialog is
running.

svn-id: r22688
2006-05-27 22:57:00 +00:00
Willem Jan Palenstijn
dfce3faabd add fixme about scrolling in about dialog
svn-id: r22685
2006-05-27 14:41:15 +00:00
Willem Jan Palenstijn
72403d1336 fix missing saveload thumbnail variables in classic theme config
svn-id: r22684
2006-05-27 13:52:30 +00:00
Willem Jan Palenstijn
0993c6a712 make EditableWidget's caret visible when it moves
svn-id: r22682
2006-05-27 13:17:19 +00:00
Johannes Schickel
1b2485f4af Don't draw the shadow outside the scrollbar (should fix 'garbage' when moving the scrollbar)
svn-id: r22680
2006-05-27 12:48:31 +00:00
Johannes Schickel
ae191feb21 Fixes caret drawing in EditTextWidgets.
svn-id: r22678
2006-05-27 12:37:00 +00:00
Eugene Sandulenko
60e288fe87 More vertical space in game options 'game' tab for consistency and better
visuals

svn-id: r22677
2006-05-27 12:05:16 +00:00
Torbjörn Andersson
923101abcb Override the list widget's FindWidget() function, to allow it to return the
scrollbar widget.

svn-id: r22672
2006-05-27 06:38:45 +00:00
Eugene Sandulenko
9943084227 Oops. More advanced warning recovered a mechanic mistake. Fixing.
svn-id: r22671
2006-05-27 06:08:44 +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