Commit Graph

1132 Commits

Author SHA1 Message Date
Eugene Sandulenko
65041ae239 Fix bug with tab navigation buttons jumping on resolution change.
svn-id: r23128
2006-06-15 12:09:53 +00:00
Torbjörn Andersson
e939153b6a Fixed regression with the override checkboxes in the "Edit game" dialog. The
checkbox's command message was being intercepted by the tab widget.

svn-id: r23126
2006-06-15 12:04:22 +00:00
Torbjörn Andersson
2265872a83 Delete the old cursor buffer before allocating a new one. If the theme is
enabled by the time it's refreshed, replace the cursor.

svn-id: r23122
2006-06-15 08:07:20 +00:00
Eugene Sandulenko
e76a4cbc0d Smaller versions of checkbox and cursor for 320xY resolutions.
svn-id: r23120
2006-06-15 02:54:02 +00:00
Eugene Sandulenko
bc74af60a6 - Consistent order of tabs between global and game options
- Consistent order of paths on paths tab in global and game options

svn-id: r23118
2006-06-15 02:30:05 +00:00
Eugene Sandulenko
021159724d Fix drawing of tab widget. Now it matches mock-ups. Added tab scrolling.
svn-id: r23116
2006-06-15 02:14:40 +00:00
Johannes Schickel
793151a0aa Implements new Tab drawing for modern theme (nearlly matches mockups now)
svn-id: r23106
2006-06-14 16:29:56 +00:00
Eugene Sandulenko
9458fd5cff No idea how PlayStation turned to Playstation. Fixing.
svn-id: r23093
2006-06-13 18:33:58 +00:00
Eugene Sandulenko
410e149705 More proper version of credits
svn-id: r23092
2006-06-13 18:32:05 +00:00
Eugene Sandulenko
f66f86fbd7 Fix credits
svn-id: r23090
2006-06-13 18:22:18 +00:00
Torbjörn Andersson
61c5281454 Removed printf() debug message.
svn-id: r23085
2006-06-13 10:20:59 +00:00
Torbjörn Andersson
3728e96b17 Disable the theme before restoring the cursor, not afterwards. Otherwise there
may be a noticeable amount of time (disabling the theme can be comparatively
slow) where the cursor is wrong.

svn-id: r23082
2006-06-13 09:57:16 +00:00
Torbjörn Andersson
df4f95f805 Let the [cursor] palette manager handle disableCursorPalette() too, to avoid
cursor glitch in at least some HE games which first set a cursor palette, and
then disable it. (The disabled palette would be re-enabled after dismissing the
GUI.)

svn-id: r23081
2006-06-13 09:48:46 +00:00
Torbjörn Andersson
f22be03872 Increased the spacing between the widgets on the "Game" tab of the "Edit Game"
dialog in 320xX mode. They were so close to each other that it bordered on
being pornographic.

svn-id: r23058
2006-06-12 08:40:50 +00:00
Torbjörn Andersson
3e42e4a601 Re-calculate tab width when the screen changes.
svn-id: r23037
2006-06-11 21:43:09 +00:00
Eugene Sandulenko
9b2e92b686 Patch from bugreport #1503715: "Quit should clear domain"
svn-id: r23036
2006-06-11 21:41:04 +00:00
Torbjörn Andersson
4876c8a2be Whitespace.
svn-id: r23035
2006-06-11 21:34:25 +00:00
Torbjörn Andersson
0be035e470 Re-calculate the label width for EditGameDialog's language and platform pop-ups
when the screen changes.

svn-id: r23034
2006-06-11 21:26:43 +00:00
Eugene Sandulenko
4867a75918 Patch #1336171: "MIDI gain setting for FluidSynth" with slight modifications
of PSP theme to fit new slider into MIDI tab.

svn-id: r23033
2006-06-11 20:51:14 +00:00
Eugene Sandulenko
62e286c30f Patch from bugreport #1502409: "Search ScummVM directory for GUI theme".
It adds theme patch setting to GUI.

svn-id: r23032
2006-06-11 20:40:22 +00:00
Joost Peters
4324e38f7c Playstation -> PlayStation
svn-id: r23026
2006-06-11 12:15:03 +00:00
Eugene Sandulenko
d8e25897d3 Add Joachim as documentation writer
svn-id: r23025
2006-06-11 11:10:40 +00:00
Eugene Sandulenko
8acb3f9e88 Sync credits
svn-id: r23024
2006-06-11 11:04:42 +00:00
Torbjörn Andersson
8ef6ff1765 This may cut down a little on unnecessary strings / mallocs:
* Only create the self.[xywh] aliases and its variables if prefixedname has no
  periods in it, e.g. MusicText.x, but not MusicText.align.x

* Set the .r, .g and .b variables directly, rather than aliasing them through
  .x, .y and .w

svn-id: r23000
2006-06-10 10:09:40 +00:00
Torbjörn Andersson
c78409da15 Whitespace
svn-id: r22999
2006-06-10 08:24:00 +00:00
Lars Persson
eca46382d5 Return proper keynames for Symbian keymapping
svn-id: r22997
2006-06-10 07:21:26 +00:00
Johannes Schickel
15aee485ea - Removes (obsolete) USE_AUTO_SCALE define
- typo fix

svn-id: r22987
2006-06-08 19:43:37 +00:00
Eugene Sandulenko
6aaafb47eb oops. More appropriate place for loading fonts. Avoids loading fonts on
each GUI start

svn-id: r22968
2006-06-07 02:55:08 +00:00
Eugene Sandulenko
e51d7fcc35 Fix regression with console having wrong font on startup.
svn-id: r22967
2006-06-07 02:53:03 +00:00
Eugene Sandulenko
6f8c4250f9 Move whole theme ini file to evaluator. Next step is caching. Also now it is
possible to use per-resolution gfx and colors, i.e. complete customization.

svn-id: r22964
2006-06-06 23:57:14 +00:00
Torbjörn Andersson
2023505402 Some minor tweaks to the classic theme's options dialog. The SoundFont and
the paths buttons have the same left margin now.

svn-id: r22941
2006-06-05 19:24:02 +00:00
Max Horn
61737da115 Slightly optimize 'getVar(FOO)' usage pattern
svn-id: r22937
2006-06-05 17:56:27 +00:00
Max Horn
0f18020010 Some more string usage tweaks
svn-id: r22936
2006-06-05 17:43:30 +00:00
Max Horn
5f76cd0d9e cleanup
svn-id: r22930
2006-06-05 12:35:33 +00:00
Max Horn
110718603c Fixing some more typenames to comply to the ScummVM coding guidelines
svn-id: r22929
2006-06-05 12:29:21 +00:00
Max Horn
c0805830eb Fix various typenames to comply to the ScummVM coding guidelines
svn-id: r22928
2006-06-05 12:22:51 +00:00
Torbjörn Andersson
5f3c930fd1 I just realized that by making the classic SCUMM options dialog just one pixel
wider, it matches the old, hard-coded, width for the 1x scaler. How can I
possibly resist something like that? :-)

svn-id: r22926
2006-06-05 07:17:42 +00:00
Torbjörn Andersson
a2718bc078 Base the width of the SCUMM options dialog, classic theme, on buttonWidth,
rather than hard-coding it. This should fix bug #1500674.

svn-id: r22925
2006-06-05 07:12:28 +00:00
Johannes Schickel
60f19a0f2c Fixes slider drawing.
svn-id: r22918
2006-06-04 17:41:49 +00:00
Torbjörn Andersson
3e72e5c9e0 Re-align the launcher version string when the screen changes. It could be
argued that the widget should do this automagically, but in most cases they
should probably keep the same alignment at all resolutions, so this is the
exception that (dis)proves the rule.

svn-id: r22906
2006-06-03 22:00:20 +00:00
Eugene Sandulenko
2c01a4c901 I completely forgot to gredit Laurent Blume for Solaris x86 build which we
offer.

svn-id: r22901
2006-06-03 18:23:36 +00:00
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
Eugene Sandulenko
9477029a44 remove unused variable
svn-id: r22647
2006-05-26 01:51:03 +00:00
Eugene Sandulenko
5fee4afc32 - Put scrollbar inside of list widget
- Use resize() instead of setPos() and setSize() where applicable

svn-id: r22646
2006-05-26 01:49:56 +00:00
Eugene Sandulenko
12461c3ca0 Do not create scrollbar copy on each resolution switch
svn-id: r22645
2006-05-26 01:16:21 +00:00
Eugene Sandulenko
7f8b79d5d0 Use Courier 12pt (free one) for 2x and 3x console. Looks much more useable now.
svn-id: r22644
2006-05-26 01:05:19 +00:00
Eugene Sandulenko
9828eb7a0b Properly process screen change event in console
svn-id: r22643
2006-05-26 00:17:55 +00:00
Torbjörn Andersson
79819da301 The GUI never asked for the cursor to be visible. I'm not sure why that used to
work before the cursor manager. Oh well, the launcher should have a visible
cursor again, knock on wood.

svn-id: r22641
2006-05-25 23:20:35 +00:00
Torbjörn Andersson
8062eb6ec3 Set and show/hide mouse cursors through a "cursor manager" (analogous to the
recently added (cursor) palette manager) so that the cursor can be properly
restored after returning from the GUI.

If there's any C++ magic that can keep the backend functions from being called
by anything else than these managing classes, that would probably be a good
idea. Also, since the cursor manager keeps a copy of the cursor image, perhaps
there are at least some backends that will no longer need to?

svn-id: r22639
2006-05-25 22:51:42 +00:00
Paweł Kołodziejski
107073537e imported AGI engine
svn-id: r22588
2006-05-23 23:43:52 +00:00
Torbjörn Andersson
6cdd98b617 After the GUI has finished, restore the old cursor palette (if any). For this
to work, cursor palette now has to be set using the new "palette manager". See
graphics/paletteman.cpp

svn-id: r22543
2006-05-20 10:59:25 +00:00
Torbjörn Andersson
22fb1e48ef Set a cursor palette for the classic theme, as well. Otherwise we'll get the
wrong colours in many games.

svn-id: r22540
2006-05-20 08:29:50 +00:00
Torbjörn Andersson
71d07416cd Call the inherited handleScreenChanged() method, so that the widget can resize
itself on scaler changes.

svn-id: r22537
2006-05-19 22:49:23 +00:00
Torbjörn Andersson
ce749cd44c Call handleScreenChanged() *before* calling setEditString(). Otherwise
_leftPadding may be wrong, or even undefined, when getEditRect() is called,
which may cause ScummVM to trigger an "invalid rect" assertion.

svn-id: r22536
2006-05-19 22:41:51 +00:00
Eugene Sandulenko
23498c5974 Minor GUI tweaks
svn-id: r22534
2006-05-19 22:25:14 +00:00
Eugene Sandulenko
fac7a13cf5 Proper rendering of slider widget.
svn-id: r22527
2006-05-18 21:48:47 +00:00
Eugene Sandulenko
4ead8dff26 - Fix spelling in theme config
- Introduce embossing shadow
- Less round corners in popup widget
- Custom border in editable text widget
- Matched color in popup widget and editable text widget with mock-ups
- Less round corners in editable text widget
- Text padding in editable text widget

svn-id: r22525
2006-05-18 20:53:28 +00:00
Eugene Sandulenko
63d7895500 Oops. Break indefinite loop.
svn-id: r22524
2006-05-18 19:38:54 +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
Eugene Sandulenko
e950d171f5 Properly set GFX mode selected in GUI. Fixes selection of 1x scaler.
svn-id: r22521
2006-05-18 15:40:44 +00:00
Eugene Sandulenko
bbb5f6813d More GUI fixes:
- Center dialog title in scumm save/load dialog
- more space in add game dialog between dialog header and selected path

svn-id: r22517
2006-05-18 13:40:35 +00:00
Eugene Sandulenko
57e90daf1c Fix several GUI layout problems:
- Correct button widths in scumm help dialog
- Fix button widths on path tabs in options dialogs
- Fix scumm options dialog in 320xY mode
- Added space after volume controls in options dialog

svn-id: r22516
2006-05-18 13:22:48 +00:00
Eugene Sandulenko
4dfbfe7eca - Revert additional setUpCursor() call as it broke in-game cursor palette
- Disable scaling for cursors which have target scale defined

svn-id: r22509
2006-05-18 02:03:43 +00:00
Eugene Sandulenko
3f62ce3069 Improve new cursor image a bit for better visibility.
svn-id: r22508
2006-05-18 01:44:13 +00:00
Eugene Sandulenko
71e341ba39 Better cursor image
svn-id: r22507
2006-05-18 01:36:06 +00:00
Max Horn
5b5b0bd2d6 Added salty-horse to the credits
svn-id: r22458
2006-05-13 17:33:21 +00:00
Max Horn
0d6362ea48 Patch #1091170: ALL, SCUMM: Subtitle speed control
svn-id: r22456
2006-05-13 17:30:04 +00:00
Torbjörn Andersson
d6e39db09d If there is no "browser_lastpath" setting, create a FilesystemNode to "."
instead of a completely blank one. This should fix the failed assertion when
trying to add a new game that was reported on the forum.

svn-id: r22426
2006-05-13 06:08:39 +00:00
Sven Hesse
6add5edcee Crediting Patrick Combet (aka Dorian Gray) for the Gobliiins ADL player
svn-id: r22414
2006-05-12 13:04:00 +00:00
Max Horn
dad44b45d3 Removed Base::setTarget, and some minor cleanup & tweaks
svn-id: r22356
2006-05-05 00:26:03 +00:00
Max Horn
5d5c02d66c Moved GameDetector::setTarget & findGame to the new namespace Base; moved their declaration to base/game.h, their implementation to base/main.cpp (both until we can come up with a better location). Also moved detectMain into main.cpp, where it now is a local static function
svn-id: r22346
2006-05-04 23:24:09 +00:00
Max Horn
6321cfc874 Turned the last remaining few GameDetector methods into static methods
svn-id: r22344
2006-05-04 22:52:18 +00:00
Torbjörn Andersson
24a46d5da8 Checking if the node isValid() is no longer an option, but isDirectory() should
serve the same purpose, I believe.

svn-id: r22324
2006-05-04 03:44:50 +00:00
Max Horn
9f7b98617d Fix listDir call in BrowserDialog
svn-id: r22318
2006-05-03 20:51:06 +00:00
Max Horn
d016c353c5 Changed FilesystemNode::listDir to return a bool indicating its success (or failure)
svn-id: r22315
2006-05-03 20:43:26 +00:00
Torbjörn Andersson
2ab62d8b02 I don't know if this is correct, but at least browser.cpp compiles again now.
svn-id: r22299
2006-05-03 10:48:18 +00:00
Max Horn
36e3e5ee78 Memorize the directory that was last visited with the browser across ScummVM runs (see also FR #1460734)
svn-id: r22197
2006-04-28 23:15:43 +00:00
Johannes Schickel
6b225b40fa Uses the special cursor color palette for the cursor now (this fixes problems with creation of thumbnails of the scumm engine)
svn-id: r22152
2006-04-25 15:20:46 +00:00
Eugene Sandulenko
58462fa682 - minor cleanup in modern.ini
- implement skipFor theme section keyword

svn-id: r22151
2006-04-25 14:59:42 +00:00
Eugene Sandulenko
869622cf00 - Resize chooser dialog
- Swap About and Help buttons in main SCUMM menu for consistency with launcher

svn-id: r22150
2006-04-25 14:27:41 +00:00
Travis Howell
91831974a8 Update all credits
svn-id: r22123
2006-04-23 22:55:31 +00:00
Lars Persson
7b80324c6d Use SetInt to set the Keymapping version, instead of Set.
svn-id: r22073
2006-04-21 20:51:29 +00:00
Travis Howell
d474595629 Fix valgrind warning
svn-id: r22065
2006-04-21 04:06:44 +00:00
Won Star
95c134c9a8 Fix compile with DISABLE_FANCY_THEME.
svn-id: r22060
2006-04-20 12:25:25 +00:00
Torbjörn Andersson
b6783677b5 If I understand things correctly, this should fix the caret drawing in list
widgets. (The glitch was most noticeable in the modern theme.)

svn-id: r22052
2006-04-20 08:14:55 +00:00
Johannes Schickel
9e734b0851 Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it recives a EVENT_SCREEN_CHANGED.
svn-id: r22025
2006-04-19 06:22:15 +00:00
Johannes Schickel
1c65f3417a Fixes problems with wrong colors on the overlay in scumm engine.
svn-id: r22024
2006-04-19 06:00:34 +00:00
Johannes Schickel
af8b2d83f7 Oops again. removed unneeded entry.
svn-id: r22023
2006-04-19 05:50:03 +00:00
Johannes Schickel
87c6abdd68 Oops forgot to commit changes here with last commit.
svn-id: r22022
2006-04-19 05:48:08 +00:00
Johannes Schickel
ff421d5adc Prepairs merge of SaveLoadChooser and SaveLoadChooserEx of the scumm engine.
svn-id: r22020
2006-04-19 05:46:21 +00:00
Johannes Schickel
0a767b6467 Implements custom cursor support for the new theme and includes a standard cursor (it should be replaced though).
svn-id: r22019
2006-04-19 03:17:00 +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
58af73b344 Restores background before drawing a popupwidget.
svn-id: r22015
2006-04-18 19:52:12 +00:00
Johannes Schickel
1e15027885 Fixes "aspect ratio" text in the options with --force-1x-overlay.
svn-id: r22014
2006-04-18 19:04:15 +00:00
Johannes Schickel
96d23871b6 Oops forgot to use shadows for the PopUpWidget.
svn-id: r22013
2006-04-18 18:57:43 +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
1c9c14011b Tame colors a bit to match GUI mock-ups
svn-id: r21997
2006-04-18 00:34:57 +00:00
Johannes Schickel
955b53fb88 Fixes bug with wrong colors in the logo after a screen change. (this time it works!)
svn-id: r21984
2006-04-17 18:50:33 +00:00
Max Horn
ea85e8c986 Moved ColorMasks to their own new header graphics/colormasks.h, so that both the scalers and the GUI code can access them. Also added (untested) entries for 1555, 444, 888 and 8888 modes
svn-id: r21966
2006-04-17 10:22:05 +00:00
Johannes Schickel
b99632831f This should fix wrong colors of the scummvm logo in the new theme after screen change.
svn-id: r21953
2006-04-16 20:33:52 +00:00
Johannes Schickel
e9cbf5fcbd - Moves Graphics::loadFont to Graphics::NewFont::loadFont
- adds code for caching of fonts (just for Graphics::NewFont)
- implements cache using in the modern theme for custom fonts
- adds cache file for current normal font in the theme zip file

svn-id: r21952
2006-04-16 19:54:39 +00:00
Max Horn
74edd90aba Fix for bug #1471383: Instead of overloading ConfigManager::set, we now have new setInt and setBool methods (matching getInt/getBool), which avoids strange quirks & bugs caused by (char *) being implicitly cast to int (ouch)
svn-id: r21951
2006-04-16 19:23:14 +00:00
Eugene Sandulenko
08b9cd7922 Remove redundant code. soundfont is taken care in OptionsDialog::open() now.
svn-id: r21950
2006-04-16 18:32:28 +00:00
Eugene Sandulenko
9de4b02b5c Patch #1469722: "Game-specific SoundFont configuration broken"
svn-id: r21949
2006-04-16 18:17:53 +00:00
Max Horn
555a568e59 Fixed some breakage in the 'Add Game' code I recently introduced; added a FIXME comment regarding the 'description' config file key
svn-id: r21943
2006-04-16 13:58:11 +00:00
Max Horn
206fdf0528 Fixed broken svn:keywords values
svn-id: r21939
2006-04-16 13:01:41 +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
Max Horn
ad45318328 Removed GameDetector::_gameid in favor of using a config manager entry
svn-id: r21915
2006-04-15 17:39:14 +00:00
Max Horn
1eb526f71a Instead of calling our main them 'default-theme', call it 'modern' and reserve the gui theme name 'default' to indicate, well, the *default* theme, whatever that is
svn-id: r21887
2006-04-14 13:20:39 +00:00
Johannes Schickel
53f81b3366 Sets up standard normal font.
svn-id: r21869
2006-04-14 02:21:38 +00:00
Johannes Schickel
96cf7028b9 - implements .bdf font loader based on convbdf (sure could have some clean up)
- adds three different font styles to the themes (normal, bold (default one), italic)
- implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section)
- changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though)
- extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName)
- adds the font style constans to the builtin constants for the evaluator)

svn-id: r21868
2006-04-14 02:16:55 +00:00
Johannes Schickel
1444a1ab9f - No longer draws full shadows for disabled widgets
- Implements 'negativ alpha' values for drawSurfaceMasked (from -1 to -100, used to dim the pixels -1 means very very small dim -100 should be black)
- Changes drawSurfaceMasked to use macros for easy changing drawing code

svn-id: r21852
2006-04-13 22:47:22 +00:00
Johannes Schickel
f2370a0560 Deletes color cache and custom dialog shading.
svn-id: r21850
2006-04-13 22:20:50 +00:00
Lars Persson
1d265f1895 Commiting Fingolfins patch to remove gamedetector usage.
svn-id: r21830
2006-04-12 19:04:10 +00:00
Johannes Schickel
e02625db6a Speeds up calcGradient again a little bit.
Also this should fix a bug in getColorAlphaImpl (I'm not 100% sure if it was wrong before though)

svn-id: r21818
2006-04-12 03:01:06 +00:00
Johannes Schickel
3fab2f4898 - some little clean ups
- improves speed of the dimming effect (get's rid of divisions in favour of shifts)
- improves speed of calcGradient (nearlly twice as fast in my tests now)

svn-id: r21817
2006-04-12 02:27:56 +00:00
Johannes Schickel
ea6c62ba3d Draws the same border for 'kWidgetBackgroundPlain' as for 'kWidgetBackgroundBorderSmall'.
This fixes missing border in the pop up widget.

svn-id: r21796
2006-04-11 16:32:03 +00:00
Johannes Schickel
521697be01 Fixes disappearing borders with classic theme.
svn-id: r21795
2006-04-11 16:28:00 +00:00
Johannes Schickel
4b8b7e2aed Checks if something is drawn out of the screen in drawSurfaceMasked (fixes crashes with --force-1x-overlay)
svn-id: r21794
2006-04-11 16:05:59 +00:00
Johannes Schickel
3ac923ba58 Fixes cutted texts with --force-1x-overlay.
svn-id: r21793
2006-04-11 15:45:21 +00:00
Johannes Schickel
a7a5f40cfc - cleans up drawSurfaceMasked a little bit
- get rid of getColorAlpha in drawSurfaceMasked if no alpha blending is used

svn-id: r21792
2006-04-11 15:34:07 +00:00
Johannes Schickel
c3733105cc Changed drawScrollbar to use drawShadow.
svn-id: r21791
2006-04-11 14:51:38 +00:00
Johannes Schickel
12374accc3 Makes classic theme compile without OLDGUI_TRANSPARENCY again.
svn-id: r21790
2006-04-11 14:16:15 +00:00
Johannes Schickel
a06a28fa97 Implements saving the color cache to a file (much faster startup for custom effect + less memory while gui isn't shown)
svn-id: r21766
2006-04-10 17:32:04 +00:00
Max Horn
b75be44d06 Sev now is project lead, too
svn-id: r21728
2006-04-09 14:51:47 +00:00
Max Horn
bec09d3094 Turned FSList::sort into a generic function which can be applied to anything which implements comparable iterators (like Array, List, or plain C arrays)
svn-id: r21617
2006-04-04 23:55:47 +00:00
Eugene Sandulenko
fca43f1eeb Initialize uninitialized variable.
svn-id: r21609
2006-04-04 22:32:43 +00:00
Max Horn
77555809b6 Use iterator API to iterate over all entries in the file list
svn-id: r21601
2006-04-04 21:16:53 +00:00
Max Horn
9217472f0e With this change, backends are now responsible for instantiating their OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently)
svn-id: r21557
2006-04-02 14:16:31 +00:00
Johannes Schickel
70cc7b8c26 - changed standard inactive dialog effect to dim with 30% instead of luminance
svn-id: r21546
2006-04-02 01:08:16 +00:00
Johannes Schickel
d0b8efd575 - moves some code in ThemeNew.cpp (calcGradient and calcAlpha to the bottom)
- added possibility to use a shading effect on inactive dialogs (luminance and dim are builtin, and special ablility to specifiy a own expression, evaluated via the evaluator)
- adds also a color cache (atm it's generated on startup)
- uses luminance effect by default
- bumps theme config version to 7

svn-id: r21544
2006-04-02 00:56:21 +00:00
Eugene Sandulenko
8a5df05aa0 Hide eval debug output deeper to level 5. Report total number of defined
variables.

svn-id: r21521
2006-03-31 23:51:19 +00:00
Max Horn
f4339ff6c4 - Renamed class AssocArray to HashMap to match our existing class Map (note also
that many STL implementations have a class hash_map next to class map, too)
- Changed some static File class member vars to be normal static variables, in
  yet another attempt to reduce header dependencies (in this case on hashmap.h)

svn-id: r21473
2006-03-28 10:05:25 +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
e373c9b7b5 - Revert my last change with moving addDefaultDirectory() from TheneNew.cpp
- Removed locking of further directory adds because it did not work for themes.

svn-id: r21452
2006-03-25 19:30:10 +00:00
Eugene Sandulenko
f25d49f826 - Move AddDefaultDirectory() calls in somon engine to constructor
- Move AddDefaultDirectory() from NewTheme.cpp to main.cpp

svn-id: r21451
2006-03-25 19:18:09 +00:00
Eugene Sandulenko
7569f796ec Fix crash in Options dialog in 320xY mode. Shadow was drawn off-screen
svn-id: r21438
2006-03-24 18:10:41 +00:00
Max Horn
f433bdb566 Removed obsolete test stuff from my credits description :-)
svn-id: r21435
2006-03-24 17:40:34 +00:00
Eugene Sandulenko
aa743f8920 Fix chechbox label alignment.
svn-id: r21433
2006-03-24 17:39:13 +00:00
Max Horn
7307c4cb3d - moved type aa_ref_t into AssocArray, improving code readability a bit
- added new "operator[] const" method, useful when accessing const instances
- removed the default value (if you access an entry without first checking that
  it is actually there, it's your own fault)
- replaced 'index' with 'key' which seems more logical and avoids troubles with
  certain systems that #define index in their system headers

svn-id: r21430
2006-03-24 15:39:07 +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
3e1afa4a2f o Rearranged options dialog
o Made button corners less round to match mock-ups

svn-id: r21423
2006-03-24 03:33:47 +00:00
Eugene Sandulenko
dabcc4cc9b Check values loaded from theme INI and give meaningful errors instead of
bad crashes on blitting stage.

svn-id: r21422
2006-03-24 01:45:03 +00:00
Eugene Sandulenko
a9b174abb3 Bump theme version number
svn-id: r21421
2006-03-24 01:26:25 +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
5d1b4d8f78 Implementation of AssociativeArray. Transferred GUI to it. Now it is much
faster.

svn-id: r21419
2006-03-23 22:59:38 +00:00
Eugene Sandulenko
3586905f93 Fix bug #1455213: "GUI: ExtraPath won't display" and turn theme version
into #define.

svn-id: r21395
2006-03-21 13:48:51 +00:00
Johannes Schickel
47a643ce40 Updates the config version for the new theme to 4 in the warning which is printed if the version is too low.
svn-id: r21393
2006-03-20 18:28:35 +00:00
Eugene Sandulenko
fce18c2e13 Bump theme config version number to avod confusion. A key was added there,
but I didn't bump it last time.

svn-id: r21391
2006-03-20 12:32:55 +00:00
Willem Jan Palenstijn
cbf3c06c1d adding self to credits
svn-id: r21368
2006-03-18 15:51:09 +00:00
Eugene Sandulenko
e60c0441ad theme.cpp -> ThemeClassic.cpp for consistency and less confusion
svn-id: r21363
2006-03-18 12:43:50 +00:00
Eugene Sandulenko
0b0ea17e3c Remove trailing whitespaces
svn-id: r21362
2006-03-18 12:43:00 +00:00
Eugene Sandulenko
30c7070564 Oops. Theme variables are meant to be case insensitive. Fix comparison
function.

svn-id: r21361
2006-03-18 12:42:24 +00:00
Eugene Sandulenko
a483083f35 Tweaked a little scumm main dialog and scumm save/load dialog. Still plenty
to do.

svn-id: r21271
2006-03-14 03:52:29 +00:00
Eugene Sandulenko
60793c0e64 Positioned logo properly, added different version number rendering and
got rid of antialiasing artifacts

svn-id: r21270
2006-03-14 03:08:14 +00:00
Eugene Sandulenko
b45dcc4df3 Fix logo drawing.
svn-id: r21269
2006-03-14 02:55:54 +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
94f5bd81ad Fix Chooser dialog.
svn-id: r21266
2006-03-13 23:18:22 +00:00
Lars Persson
96e87cdfe7 Moved typedef Common::String into class declaration.
svn-id: r21187
2006-03-09 22:40:21 +00:00
Eugene Sandulenko
a4a79dd951 Credit Tyst for new SVG logo.
svn-id: r21173
2006-03-09 13:25:52 +00:00
Eugene Sandulenko
cd732d680b Fix compilation on MSVC. Reported by Quietust
svn-id: r21165
2006-03-09 12:45:23 +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
Max Horn
e53e0e5885 - Removed the code from the launcher that adds language/platform to the
game descriptions. Doing this now is the responsibility of the engines.
- Adapted the SCUMM engine to add lang/platform to the desc string if 
  necessary. Other engines still have to be adapted (but many do not seem to
  need this at all, since they either are lang/platform agnostic, or already
  include this information in their MD5 tables).

svn-id: r21154
2006-03-09 03:09:21 +00:00
Eugene Sandulenko
51495fb199 Moved keys mapping dialog to new scheme. Made it generic. Fixed several
compilation errors associated with it.

svn-id: r21151
2006-03-09 02:54:02 +00:00
Max Horn
86565fcca5 - Renamed GameSettings to PlainGameDescriptor
- Added new GameDescriptor struct (similar to PlainGameDescriptor but with
  Common::String members instead of const char * ones)
- Changed DetectedGame to subclass GameDescriptor
- Removed toGameSettings() in favor of new (template) constructors in
  DetectedGame and GameDescriptor
- Fixed a bug in the obsolete gameid handling in the SCUMM & SIMON engines

svn-id: r21150
2006-03-09 02:52:51 +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
871c394e28 Cleanup
svn-id: r21138
2006-03-08 01:49:22 +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
c3e223afdb Fix implementation of UseWithPrefix keyword
svn-id: r21133
2006-03-07 19:23:38 +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
Eugene Sandulenko
d7bc756edc Add XxH to evaluation precedence.
svn-id: r21127
2006-03-07 18:26:04 +00:00
Eugene Sandulenko
1f22481d83 Do not override .prev for simple variable assignments, i.e. VAR=VALUE
svn-id: r21124
2006-03-07 13:52:53 +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
059c7a0296 Set svn keywords on theme file.
svn-id: r21120
2006-03-07 05:53:28 +00:00
Eugene Sandulenko
5c06d3391b Fix 320xY layout
svn-id: r21119
2006-03-07 05:50:37 +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
Eugene Sandulenko
ebd5833335 WIP for arbitrary widget positions. See
http://wiki.scummvm.org/index.php/GUI_Themes
Code is not yet used.

svn-id: r21115
2006-03-07 03:31:31 +00:00
Johannes Schickel
4fb6c18f0e Oops, fixes problems with disabled widgets (they need full drawn shadows).
svn-id: r21083
2006-03-04 21:25:11 +00:00
Johannes Schickel
91fbb6b7ae Improved shadow drawing (it's faster now since it doesn't draw the whole rect like before)
'cleaned up' the drawSurfaceMasked function a bit.

svn-id: r21082
2006-03-04 20:45:59 +00:00
Johannes Schickel
6010d48a8e Removed colorToRGB and RGBToColor calls when calculating alpha
and disabled the complete new theme if 'DISABLE_FANCY_THEMES' is defined.

svn-id: r21078
2006-03-04 18:34:28 +00:00
Eugene Sandulenko
c89aa846f0 Add newline to the end of the file
svn-id: r20876
2006-02-25 14:15:19 +00:00
Eugene Sandulenko
388a553f00 Put theme .ini out of .zip for better changes tracking.
svn-id: r20875
2006-02-25 14:00:22 +00:00
Torbjörn Andersson
4aaf6fec8d Turn off background caching for the graphics widget, so that the SCUMM
save/load dialog really cleans the thumbnail area when there is no thumbnail.

svn-id: r20843
2006-02-24 21:51:41 +00:00
Torbjörn Andersson
2cb8832991 Fixed redraw glitch. Our editable widgets were asking the theme to draw a very
wide caret. Changed that width to 1.

svn-id: r20842
2006-02-24 20:25:34 +00:00
Torbjörn Andersson
66b5b7b3f3 Cleanup.
svn-id: r20841
2006-02-24 19:38:16 +00:00
Torbjörn Andersson
0c91e91b44 Cleanup
svn-id: r20840
2006-02-24 19:33:23 +00:00
Torbjörn Andersson
6cf5d85e8e Fix redraw glitches when typing very long - enough to be truncated - strings.
It seems the only purpose of 'deltax' in this function was to introduce such
redrawing glitches. Weird...

svn-id: r20839
2006-02-24 19:19:55 +00:00
Eugene Sandulenko
71c170bb13 Initial version of Cinematique engine evo 1.
svn-id: r20813
2006-02-22 22:40:53 +00:00
Max Horn
e49e7ebb3f Fixing up my previous commit: finished moving common/scaler* to graphics
svn-id: r20798
2006-02-20 20:40:12 +00:00
Max Horn
db5bd6e17e EditGameDialog only needs the game description, not the full GameSettings -> changing constructor accordingly
svn-id: r20750
2006-02-18 11:12:08 +00:00
Lars Persson
d91b49c15c Added define to disable new theme support.
svn-id: r20676
2006-02-13 21:02:31 +00:00
Johannes Schickel
e067a7f288 Implemented new tab drawing, should look nicer now. (The border under the active tab isn't drawn anymore)
svn-id: r20669
2006-02-13 18:00:04 +00:00
Lars Persson
692adbe614 Changed file paths from /epoc/ to /symbian/
svn-id: r20618
2006-02-12 14:42:43 +00:00
Paweł Kołodziejski
c2575afaa7 changed path in include to use 'common' to conform rest part of code
svn-id: r20614
2006-02-12 14:05:47 +00:00
Max Horn
80cf2fa46f Reduced data duplication in module.mk files; added module.mk files for null and x11 backends; added engines/module.mk
svn-id: r20584
2006-02-12 00:16:31 +00:00
Max Horn
b34e207dbb Change CVS keywords to SVN keywords
svn-id: r20518
2006-02-11 10:08:56 +00:00
Max Horn
0ad58cdb95 Removed .cvsignore files
svn-id: r20424
2006-02-07 22:50:14 +00:00
Eugene Sandulenko
aae00f629c Change behaviour of checkboxes to more logical.
svn-id: r20416
2006-02-05 18:46:51 +00:00
Nicolas Bacca
419caac2b9 Fix QVGA Smartphone detection
svn-id: r20397
2006-02-05 14:00:35 +00:00
Paweł Kołodziejski
2ebdbbf5e0 fixes allow compile with emsvc4 again
svn-id: r20355
2006-02-03 07:30:29 +00:00
Chris Apers
25a6adc238 Should be 'description'
svn-id: r20350
2006-02-02 20:33:43 +00:00
Torbjörn Andersson
d6e141cc35 Fix glitch when moving the mouse over a disabled, checked checkbox. (The
check mark would become brighter, and I think it was because a transparent
mark was drawn over a transparent mark, thus "amplifying" it.)

svn-id: r20344
2006-02-01 22:39:54 +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
Max Horn
004b8b964a Patch #1420942 (console page down fix)
svn-id: r20342
2006-02-01 16:40:17 +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
da9b8d71ae Fixes color bugs with the new theme when switching to fullscreen on Mac OS X.
svn-id: r20338
2006-01-31 21:31:31 +00:00
Johannes Schickel
669f86705d Implements the usage of cached backgrounds in the old theme as well,
that should fix redrawing bugs with the about dialog.
Also I displayed cached background usage in the console for now, since
it produces redraw bugs with the old theme (maybe someone with knowledge how
redrawing of that dialog is handled should look at that).

svn-id: r20337
2006-01-31 20:19:47 +00:00
Johannes Schickel
1976ac6250 Adds more configureable options to the config file of the new theme,
also update the default theme zip file for that.
Also it changes the way the tab buttons get drawn, now they have
only rounded corners at the top.

svn-id: r20336
2006-01-31 19:35:33 +00:00
Torbjörn Andersson
69b2945071 Make the old theme's checkboxes look a bit more like they used to. (Not
quite, though, as they are a bit smaller than they used to be.)

svn-id: r20331
2006-01-31 14:38:42 +00:00
Torbjörn Andersson
484fca6549 Tabs look better with dialog surfaces than with widget surfaces. There's
still room for improvements, though...

svn-id: r20330
2006-01-31 09:45:36 +00:00
Torbjörn Andersson
74dd2e133d I didn't realize that disabled widgets were transparent, rather than just
faded. In those cases, I guess the background should be restored before
drawing. But that can probably be done in the drawSurface / drawRect
functions instead, like this.

svn-id: r20329
2006-01-31 08:41:51 +00:00
Torbjörn Andersson
9246a7a532 I assume this call to restoreBackground() is unnecessary.
svn-id: r20328
2006-01-31 08:03:21 +00:00
Eugene Sandulenko
a199c1ef14 Fix spelling in new entry Formed -> Former :D
svn-id: r20319
2006-01-30 20:48:45 +00:00
Max Horn
d985e24bf9 Updated credits (Debian package maintainer: Tore -> Tao
svn-id: r20312
2006-01-30 19:08:26 +00:00
Chris Apers
afaf1d0ab9 Replace use of sscanf
svn-id: r20311
2006-01-30 19:02:33 +00:00
Johannes Schickel
e5e7587443 Ok this should fix now all problems with drawing bugs of texts.
svn-id: r20298
2006-01-29 16:12:59 +00:00
Johannes Schickel
7eaa5b99b5 Fixes redraw bugs with the about dialog and the new theme.
svn-id: r20297
2006-01-29 15:07:03 +00:00
Torbjörn Andersson
f881fc47c7 Limit the maximum line width.
svn-id: r20296
2006-01-29 13:14:04 +00:00
Johannes Schickel
f509762f99 Fixes transparency and enabled transparency for disabled buttons.
svn-id: r20295
2006-01-29 12:41:58 +00:00
Johannes Schickel
f404f6ffaf Changed calcGradient again, should look nicer now.
svn-id: r20280
2006-01-28 23:56:12 +00:00
Johannes Schickel
8776ea6d18 Fixes a bug while loading the theme config from the zip file (now the caret should be black).
svn-id: r20277
2006-01-28 23:11:52 +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
Torbjörn Andersson
91d253c5b1 Applied my own patch #1416897, in an attempt to speed up list widget
redrawing. There may be regressions, but none are known at the moment.

svn-id: r20271
2006-01-28 18:21:46 +00:00
Travis Howell
cb5d7b8029 Always save gameid.
svn-id: r20260
2006-01-28 00:22:02 +00:00
Johannes Schickel
0a40639af2 This should fix bug # 1416862 (new theme: changing overlay size).
svn-id: r20253
2006-01-27 23:13:51 +00:00
Joost Peters
7e8d9fc739 Credit Paolo Costabel and Thomas Mayer who contributed to the (initial) PSP port.
svn-id: r20245
2006-01-27 21:59:48 +00:00
Eugene Sandulenko
095199da54 Proper RCS IDs.
svn-id: r20235
2006-01-27 19:04:15 +00:00
Eugene Sandulenko
118ce529b1 Fix crash on platforms which do not initialize memory with zeroes.
svn-id: r20234
2006-01-27 19:01:02 +00:00
Paweł Kołodziejski
4938b93f34 fixed warning
svn-id: r20231
2006-01-27 16:46:56 +00:00
Johannes Schickel
1f7bd7a726 Oops forgot to change calcColor to calcGradient before commiting.
svn-id: r20230
2006-01-27 15:59:29 +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
Oystein Eftevaag
4707a59eaf Changing Kyra copyright notice from EA to Westwood, after IRC discussion
svn-id: r20198
2006-01-26 23:53:13 +00:00
Oystein Eftevaag
b5dcb4e874 Adding Kyrandia to the About dialog copyright section.
svn-id: r20197
2006-01-26 23:18:36 +00:00
Max Horn
0b39c0ea9f Fix various incorrect usages of the word 'target' instead of 'gameid'; change the ambigiuous 'GameSettings::name' to 'GameSettings::gameid'
svn-id: r20115
2006-01-21 13:01:20 +00:00
Eugene Sandulenko
ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
534b4bc2a0 Add Joachim to contributors list for fixind "just" several hundreds of MD5s
and putting all our game-related lists in order.

svn-id: r20058
2006-01-16 13:28:18 +00:00
Oystein Eftevaag
ab33f59fe2 Rearranging kyra credits, I put in the wrong alphabetical order last time.
svn-id: r19963
2006-01-10 02:58:08 +00:00
Oystein Eftevaag
6aa6767e22 Adding myself to the Kyra credits
svn-id: r19958
2006-01-09 17:14:31 +00:00
Eugene Sandulenko
ea5b469390 Move Sven Hesse to Gob engine section
svn-id: r19934
2006-01-06 15:08:00 +00:00
Eugene Sandulenko
4183bc8c78 Credit Sven for objectizing gob. That was a big amount of work.
svn-id: r19901
2006-01-03 23:53:25 +00:00
Eugene Sandulenko
fb751ebe83 Elaborate more about myself in new credits format. I invite others to do that
too as that helps to determine more exactly who has an expert opinion in some
particular area.

svn-id: r19867
2005-12-31 00:14:21 +00:00
Max Horn
0eca2a971f New credits format (DocBook conversion not yet done)
svn-id: r19809
2005-12-19 02:23:01 +00:00
Eugene Sandulenko
32c1ec7312 Credit Chris Gray (hey, khalek) for Win64 builds
svn-id: r19749
2005-12-05 23:10:10 +00:00
Eugene Sandulenko
30a8a4658a Credit Kostas for PPC2002 build
svn-id: r19747
2005-12-05 14:02:06 +00:00
Lars Persson
6ed67205ec 1. New build structure for Symbian builds to allow easier build and project updates
2. Updated framework files for new structure
3. Uncommented Debug statements in vorbis.cpp (Should probably be removed alltogether.
4. Incorporated Sevs code formatting changes in the new Symbian source structure.
5. Removed/Changed EScummVM to ScummVM instead, hopefully most cases covered.
6. Beginning vibration support to be used for Scumm shake effects (Work ongoing by SumthinWicked)
7. Replaced the ScummVM icon for the FavIcon and upscaled the icon to 32x32. I think it looks ok, comments are welcome.
8. Built for S60V1 and UIQ2 targets from the cvs
9. Updated Readme with new build instructions.

Any comments are welcome.  Hopefully the other builds are not affected by this and all Sevs code updates are also incorporated.

svn-id: r19739
2005-12-03 21:29:13 +00:00
Chris Apers
64bfec97d9 Not needed anymore :)
svn-id: r19735
2005-12-03 19:04:33 +00:00
Eugene Sandulenko
85cbb17103 Forgot to mention Jean Marc who designed new cool logo for us.
svn-id: r19580
2005-11-13 03:39:10 +00:00
Eugene Sandulenko
e41e31c34f Add our website designer and HTML/CSS coder to list of contributors.
svn-id: r19579
2005-11-13 03:33:20 +00:00
Torbjörn Andersson
87a868eda5 Removed unnecessary space from the SoundFont button's text, to keep it from
being truncated in the small version of the GUI.

svn-id: r19546
2005-11-10 11:56:10 +00:00