Commit Graph
215 Commits
Author SHA1 Message Date
athrxx c52bfe4f27 SCUMM: (Loom/Mac) - add music quality slider widget 2024-02-28 21:31:50 +01:00
athrxx cc49587679 SCUMM: more coverity fixes 2024-01-30 00:35:49 +01:00
AndywinXp 8461f25218 SCUMM: Rename enhancementClassActive to enhancementEnabled 2023-11-08 11:46:06 +01:00
AndywinXp c6872cdbbf SCUMM: Clean-up for enhancement groupings 2023-11-08 11:46:06 +01:00
AndywinXp d5fa7aeb90 SCUMM: Mark all enhancements with their respective classes 2023-11-08 11:46:06 +01:00
AndywinXp de0a096ff6 SCUMM: Set-up enhancement groups and add bit flags
This also removes the enhancement pop-up list which isn't
needed anymore.

For further information about enhancement groupings:
https://github.com/scummvm/scummvm/pull/5102#issuecomment-1608278733
2023-11-08 11:46:06 +01:00
Torbjörn Andersson 1b36ac06a6 SCUMM: Add I18N note to enhancements pop-up 2023-11-08 11:46:06 +01:00
Torbjörn Andersson fe2bb48762 SCUMM: Make parts of ScummGameOptionsWidget private or protected 2023-11-08 11:46:06 +01:00
Torbjörn Andersson a982378482 SCUMM: Initial work on more fine-grained enhancement setting
There was discussion a while back about how people may want to enable
some of the SCUMM enhancements, but not all since some of them affect
gameplay beyond simple bugfixing. This is an initial attempt at the GUI
part of it. The details are very much still up for discussion.
2023-11-08 11:46:06 +01:00
Torbjörn Andersson 1b0e110df3 GUI: Eliminate "WideSlider"
We currently have two widget types for sliders: "Slider" and
"WideSlider". This eliminates the latter, making all sliders use the
available space. This arguably makes them look better, and should make
them easier to manipulate on touch devices like phones.

Did I say "all"? Not quite. In the high resolution layout, the volume
sliders share space with the "Mute all" checkbox. The layout engine does
not cope well with two side-by-side layouts of indeterminate width,
apparently, so there we set a width, cross our fingers and hope that the
checkbox will still have enough space in all translations.
2023-07-29 08:10:13 +02:00
AndywinXp e28b3f09b1 SCUMM: GUI: Use correct heap message for some v6 games 2023-03-19 19:26:15 +01:00
Donovan Watteau 18ab6803d6 JANITORIAL: Fix various "an" typos in comments 2023-03-16 14:47:28 +01:00
Donovan Watteau 7a7a1552b2 JANITORIAL: SCUMM: Fix some typos and extra semicolons 2023-03-07 13:52:18 +01:00
Little Cat af06a58c18 SCUMM HE: Fix compile error. 2023-03-06 00:07:13 +01:00
Little Cat af035e3535 SCUMM HE: Fix crash when loading options in-game. 2023-03-06 00:07:13 +01:00
Little Cat 653b1a19df SCUMM HE: Re-add audio override option if needed. 2023-03-06 00:07:13 +01:00
Little Cat 4aede052e3 SCUMM HE: Migrate competitive mods. 2023-03-06 00:07:13 +01:00
Little Cat 5b92f8fe97 SCUMM HE: Configurable lobby server and checking. 2023-03-06 00:07:13 +01:00
Little Cat 4f23fe5c1f SCUMM HE: Proper server reset button 2023-03-06 00:07:13 +01:00
Little Cat cec2134a2d SCUMM HE: Network play options. 2023-03-06 00:07:13 +01:00
AndywinXp 7a10e3ea30 SCUMM: Update Original GUI checkbox description
This notifies the user that in order to get the quit confirmation
dialogs, the "Ask for confirmation on exit" toggle has to be active.
2023-01-20 10:03:37 +01:00
AndywinXp 4d6d76b60b SCUMM: GUI: Implement missing banners for v6 games 2022-12-20 22:38:26 +01:00
AndywinXp b1eaf2ea0f SCUMM: GUI: Implement MI1 SegaCD menu 2022-12-13 18:40:11 +01:00
Donovan Watteau 79a6868067 SCUMM: Bring some untranslated DOTT menu strings from Sam & Max
Before the original SCUMM GUI and menus were implemented in ScummVM,
opening the F5 menu when playing DOTT would give localized strings to
(almost) any player.

Now that we can display the original F5 menu, a language accessibility
regression shows up, in that the original CD release of DOTT just
harcoded some of the menu strings in English (such as "Display Text",
"SFX", and so on).

This was fixed in Sam & Max CD (which uses the same menu but with
different colors) and all later games, so it appears to be fair to
bring the official Sam & Max menu translations to DOTT, as an
enhancement.

The seven-year-old me playing DOTT would have been happy to understand
what those settings meant, back then :)

Trac#13947.
2022-12-05 13:48:54 +01:00
Walter Agazzi 6e81c76e60 SCUMM: Enable original GUI checkbox for Loom EGA 2022-11-28 23:49:45 +01:00
AndywinXp 3f96b8980b SCUMM: GUI: Implement a v3 table for hardcoded quit prompts 2022-11-28 23:21:45 +01:00
AndywinXp 3bc9064278 SCUMM: GUI: Make the restart prompt more consistent
Also make it work for v3 Towns games, which have their own mapping for the F keys
2022-11-28 23:21:45 +01:00
AndywinXp 9cb7293de3 SCUMM: Clean-up and implement remaining messages for v0-1-2-3 2022-11-28 23:21:45 +01:00
AndywinXp 13e7c9d4d9 SCUMM: Implement basic support for v0-3 GUI 2022-11-28 23:21:45 +01:00
Walter Agazzi a21f8c574f GUI: Add "use original gui" checkbox in Loom and MI CD
Add the "use original gui" checkbox to the custom Loom EGA/VGA
and Monkey 1 CD version game options window.
Also slightly change to layout for consistency with
the other games.
2022-11-18 17:11:51 +01:00
athrxx af45365e4f SCUMM: make some vars const 2022-09-08 19:10:42 +02:00
AndywinXp b19e8dd609 SCUMM: GUI: Fix COMI demo string regression 2022-09-08 19:10:42 +02:00
AndywinXp eadacafd1b SCUMM: Fix warnings 2022-09-08 19:10:42 +02:00
AndywinXp 9bca06429f SCUMM: GUI: Implement v5 GUI and Menu 2022-09-08 19:10:42 +02:00
AndywinXp 194555c3a7 SCUMM: GUI: Implement v6 GUI and Menu 2022-09-08 19:10:42 +02:00
AndywinXp 6e96d5f853 SCUMM: GUI: Fix warning 2022-09-08 19:10:42 +02:00
AndywinXp 457bcb67db SCUMM: GUI: Implement the majority of the v7 Main Menu 2022-09-08 19:10:42 +02:00
AndywinXp d1b73e1ffe SCUMM: GUI: Add functional main GUI banners for v5-6-7 2022-09-08 19:10:42 +02:00
athrxx 3d39d206ee SCUMM: replace strcpy calls with Common::strlcpy
This replaces every single strcpy call in the engine with
Common::strlcpy.

Some of these might cases seem a bit pointless, but it is
supposed to discourage future use of strcpy. If people don't
see a single occasion of it they might think twice before they
use it...
2022-08-27 13:08:38 +03:00
athrxx 56bdc4f6ac SCUMM: (v2/German) - add original pause/restart strings 2022-08-22 18:12:42 +02:00
athrxx f1c5276bef SCUMM: (v1/v2/FR) - add original pause/restart/quit strings
I have added the French strings provided by dwa and made
a little decoder that transfers the character to cp850 if
needed.
This way we can support both original pause/restart/quit
dialogs and the ones that we currently have.
2022-08-19 13:19:22 +02:00
athrxx c6e8f6494b SCUMM: (v1-3) - improve pause/restart/quit string handling
The recent PR 4204 made me aware of some things I had kind of tried to ignore when I updated these dialogs for CJK font support.

Currently, the language for the pause/restart/quit messages is tied to the GUI/launcher language and the translation manager is used to translate the. E. g., if you start the French version of MM or ZAK and have a launcher language setting of English, you will get the English pause/restart/quit messages. If you set the launcher language to French you will get it the French ones. Also, the encodings from the translation manager aren't compatible with the game string encodings (mostly solved by PR 4204, though).

This commit now gets rid of any translation manager use here. Instead, we tie the translations for these messages to the game language.

I have included all strings for the v1/v2 language variants I found in the detection table.

I am interested in having the exact original messages here. However, I have only inserted them from the English interpreters, since those are all I have. For the other languages, for the time being, I have just used the texts from the translation manager and reencoded those with codepage 850. So, if anyone has access to an original v1/v2 interpreter in French, Italian, German, Spanish, Russian or Swedish, he/she might want to extract and replace the strings here with the correct ones...
2022-08-18 02:17:42 +02:00
AndywinXp 85d3c5f5ac SCUMM: COMI: Implement remaining banners for demo 2022-08-06 13:33:56 +02:00
AndywinXp fabaeb4b83 SCUMM: COMI: Implement original GUI 2022-08-06 13:33:56 +02:00
Torbjörn Andersson 682330f8bd SCUMM: Remove adjustment setting from MI1 SE Talkie
The tracks built for the SE Talkie already have little to no silence at
the beginning, and the outlook has its own separate track instead of a
continuation of the first one.

That means the settings are of limited use here, and removing them
simplifies the code.
2022-06-03 21:03:58 +02:00
Torbjörn Andersson 6a040e3ea2 SCUMM: Add adjustment sliders for VGA Loom (CD) and MI1 (CD)
When ripping the audio tracks from CD, you may not get quite what the
game expects, e.g. my copy of Loom has less silence at the start of the
track than the CDDA.SOU file from the Steam version. And the MI1 intro
appears to be timed with the assumption that there is no silence at all
at the start of that track.

This makes it possible to compensate for that without having to edit the
audio file. It may also be of some help with fan soundtrack replacements
for MI1, though I have little experience with that.
2022-06-03 21:03:58 +02:00
Torbjörn Andersson 608a334c22 SCUMM: Make recent Loom workarounds optional
Unfortunately that means I had to add the enhancements checkbox to the
EGA Loom settings widget, because I can't see any way to automatically
combine the static and dynamic settings widget. Oh well.
2022-03-23 16:02:49 +01:00
Torbjörn Andersson 51867690c4 SCUMM: Fix EGA Loom options in RTL mode
There is a special case for adjusting the padding in Widget::draw() that
is applied, among other things, to widgets whose name contains
"GameOptions". We want that special case to apply to the EGA Loom
options as well, so this is simply another renaming.

At some point, it would probably be a good idea for this special case to
go away.
2022-03-09 08:53:14 +01:00
Torbjörn Andersson fe09c9ad4f SCUMM: Rename EGA Loom settings elements
Because if I constantly have to double-check which is which, even though
there are only three of them, I clearly made a mistake when I first
named them.
2022-03-09 08:35:22 +01:00
Torbjörn Andersson 1212930938 SCUMM: Rename EgaLoomOptionsiWidget to LoomEgaOptionsWidget
This is ito be more consistent with LoomTownsDifficultyDialog.
2022-03-08 18:21:04 +01:00