Commit Graph
217 Commits
Author SHA1 Message Date
Torbjörn Andersson 2223c96395 SCUMM: More Indy 3 Mac GUI cleanups 2023-10-16 17:40:29 +02:00
Torbjörn Andersson a67b1e9758 SCUMM: Remove Indy 3 Mac GUI verb script check
It seems it's no longer needed. Also, cleaned up naming a bit so that
instead of "active" and "visible", the GUI is now "allowed" and
"active".
2023-10-16 17:40:29 +02:00
Torbjörn Andersson e40c3a2fbb SCUMM: More Indy 3 Mac GUI cleanup + inventory scrolling 2023-10-16 17:40:29 +02:00
Torbjörn Andersson 6f8f3b4b13 SCUMM: Update Indy 3 Mac GUI less frequently
It's enough to do it after thigns have had a chance to change. Not every
iteration of waitForTimer(). This means we no longer have as precise
resolution for our animation timers, but I don't think that's any reason
not to cut down on the (admittedly small) amount of extra work the GUI
has to do.
2023-10-16 17:40:29 +02:00
Torbjörn Andersson c6d1a256ef SCUMM: Moved Mac Indy 3 GUI into its own class
This is still just a mock-up, and a bad one at that. It will all be for
nought unless I can figure out how to wire up these buttons to the SCUMM
verbs.
2023-10-16 17:40:29 +02:00
AndywinXp f4455e773e SCUMM: Relabel part of the general sound code
Albeit not 100% necessary for rewriting the HE sound engine,
I decided to make this change in order to:
- Give proper meaning to magic numbers and variables
  which were given temporary names 20 years ago;
- Avoid going insane when making comparison with HE code
  and ours, when rewriting the sound code.
2023-08-18 22:20:45 +02:00
AndywinXp 142924cec4 SCUMM: GUI: Fix some FM-Towns banner not disappearing properly 2023-07-09 20:50:09 +02:00
AndywinXp f484ad6545 SCUMM: SAMNMAX: Fix bug #14467
This was caused by the fact that the pre and post save screen scripts
were not being called, and this messed up the cursor state with savegames
created as quicksaves.

Also, renamed the variables containing said scripts numbers, so that
they are a little bit more meaningful now.
2023-05-21 21:17:36 +02:00
AndywinXp 9416772cb1 SCUMM: Fix keyboard inputs being lost during mouse inputs
The line we're amending was applied a while ago when there had
been issues with COMI losing mouse inputs during a keyboard press;
apparently this has been resolved in a different way, and keeping it
(on the contrary) loses keyboard inputs.

This has been tested by the speedrun community.
2023-04-02 11:35:35 +02:00
AndywinXp e28b3f09b1 SCUMM: GUI: Use correct heap message for some v6 games 2023-03-19 19:26:15 +01:00
AndywinXp e689c5116f SCUMM: GUI: Fix text not being entirely cleared in edge cases
When clearBanner() is called for versions lower than 7, it can cause some pixels
from the previous dialog text to remain on screen and not be cleared when the
text speed banner is displayed and cleared out.
2023-03-17 18:40:13 +01:00
AndywinXp 122eab3e4a SCUMM: Remove leftover debug print 2023-02-11 16:46:15 +01:00
AndywinXp ca59d016e5 SCUMM: MI1 (SegaCD): Improve input handling during dialogs
We allow ENTER to be used to confirm the dialog choice, swap the left and right
arrow keys, and correctly map the numpad keys (so that joypad now actually work!)
2023-02-11 11:32:48 +01:00
Cameron Cawley f7785f463a SCUMM: Use the keymapper for bike fights in Full Throttle 2023-02-08 00:11:40 +01:00
Little Cat 2f6b3df250 SCUMM: INPUT: Don't subsitute clicks in HE games.
These (later) games can have scripts that accept Enter and Tab keys.
2023-01-26 11:01:58 +01:00
AndywinXp 27f9345bed SCUMM: Fix bug #14051 2023-01-19 19:41:10 +01:00
AndywinXp 0a665007d5 JANITORIAL: SCUMM: Fix spelling error 2023-01-19 19:37:38 +01:00
AndywinXp b376f0010f SCUMM: GUI: Add support for Maniac NES 2022-12-29 11:19:45 +01:00
AndywinXp 995b83c546 SCUMM: GUI: Allow quitting with ALT-X and ALT-Q combinations 2022-12-28 19:15:39 +01:00
AndywinXp bc531b3738 SCUMM: GUI: Allow SHIFT-B to be also used for the buffer shortcut 2022-12-27 15:37:30 +01:00
AndywinXp 4d6d76b60b SCUMM: GUI: Implement missing banners for v6 games 2022-12-20 22:38:26 +01:00
D G Turner 9d1d5ba338 SCUMM: GUI: Fix GCC Compiler Parantheses Needed Warning 2022-12-14 09:18:26 +00:00
AndywinXp f463d032d8 SCUMM: GUI: Improve readability 2022-12-13 18:40:11 +01:00
AndywinXp 06f352f8e4 SCUMM: GUI: Fix restart prompt banner appearing for MI1 SegaCD 2022-12-13 18:40:11 +01:00
AndywinXp b1eaf2ea0f SCUMM: GUI: Implement MI1 SegaCD menu 2022-12-13 18:40:11 +01:00
AndywinXp 2a1708b2c0 SCUMM: GUI: Fix wrong textSpeed range in GUI string 2022-12-01 19:54:49 +01:00
AndywinXp 1d206fbc53 SCUMM: v0-1-2-3: Implement actual saving\loading system
This commit implements saving and loading in the same way the original interpreters
for MANIAC v0-1-2, ZAK v1-2-3, LOOM v3 and INDY v3 do. This makes it possible to
use the original save menus without glitches or crashes.

Saves done from GMM can also be loaded from the original menu.
2022-11-28 23:21:45 +01:00
AndywinXp 9900bbd616 SCUMM: GUI: Implement original save/load menus for v5 FM-Towns games 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 b8e4fbb72b SCUMM: GUI: Fix GMM not opening on F5 press for v3 Mac games 2022-11-28 23:21:45 +01:00
AndywinXp 6560244a81 SCUMM: GUI: Fix regression in snap scroll message 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
AndywinXp 078bfa70cd SCUMM: FT: Fix mouse button-up events being lost during INSANE sequences 2022-11-14 00:15:45 +01:00
Torbjörn Andersson 1ffa644d20 SCUMM: Add feature flag for the "Ultimate Talkie" version of MI1/MI2
There are so many workarounds where we either want to make sure it's not
the "Ultimate Talkie" version or that it is, that it's much nicer to
have a feature flag than having to strcmp() the variant.
2022-11-07 22:07:28 +02:00
AndywinXp 87c02100b4 SCUMM: Fix mouse inputs being lost during repeated keypresses
This thing went unnoticed for a while. It was brought to my attention by members of
the speedrunning community, since it caused dropped inputs during runs.
2022-11-02 21:20:46 +01:00
Hubert Maier f7253b81c9 SCUMM: Correct spelling mistake
accomodate -> accommodate
2022-10-27 15:57:28 +02:00
Le Philousophe 137b51d7ac SCUMM: Don't use unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
Donovan Watteau 80e134a912 SCUMM: Let it build again without ENABLE_SCUMM_7_8 2022-09-20 19:38:18 +02:00
AndywinXp 652d8fd20b SCUMM: GUI: Fix regression in which COMI (non-demo) allowed using '+' and '-' for text speed 2022-09-14 23:06:57 +02:00
AndywinXp bb343ad6bd SCUMM: Fix nullptr access 2022-09-08 19:10:42 +02:00
AndywinXp 5c47ccd478 SCUMM: Allow setting voice mode for SE Talkie games 2022-09-08 19:10:42 +02:00
athrxx 7cf77ce865 SCUMM: fix rtl feature 2022-09-08 19:10:42 +02:00
athrxx 537e6043f2 SCUMM: (GUI) - add mouse wheel support to save/load dialog 2022-09-08 19:10:42 +02:00
AndywinXp c8ba69ed9a SCUMM: GUI: Make quit prompt behavior more consistent 2022-09-08 19:10:42 +02:00
AndywinXp 5ef621e27d SCUMM: GUI: Allow the user to open the GMM whilst on the original menu 2022-09-08 19:10:42 +02:00
AndywinXp 158a347c94 SCUMM: GUI: Allow ALT-X combination on games which supported it 2022-09-08 19:10:42 +02:00
AndywinXp 880c78b023 SCUMM: GUI: Implement v4 GUI and menu 2022-09-08 19:10:42 +02:00
AndywinXp 36dce20400 SCUMM: GUI: Allow screenshots to be taken without clearing banners 2022-09-08 19:10:42 +02:00
AndywinXp 251d6ab20d SCUMM: Fix parenthesis warning in input.cpp 2022-09-08 19:10:42 +02:00