Commit Graph
33 Commits
Author SHA1 Message Date
Walter Agazzi 1c5ca014ca Engine: allow scene render in "load room" event if transition instant
Fixes behavior after ed5e81c.
Although somewhat inconsistent, but AGS historically allowed to run animations in "room load" event,
 and they would be rendered if last room transition was "Instant", because the screen was not faded out.
 From upstream fb2fd763a471af7532324a4da8e0f655e7cf5516
2024-10-30 18:07:42 +02:00
Walter Agazzi 9a766e1a35 AGS: Engine: fixed extra frame drawn before Crossfade or Dissolve fadein
From upstream ed5e81cfb6e933ef5b6fc139b362723f1de34f10
2024-10-30 18:07:42 +02:00
Walter Agazzi 7a0876b6b0 AGS: Engine: in CopyScreenIntoBitmap support src rect for legacy letterbox
Partially From upstream 6c028465648be5afe20eef34f0e5d0955329d3dd
2024-10-30 18:07:42 +02:00
Walter Agazzi 00fc3c38c3 AGS: Engine: narrow down sprite batch filtering for fade-out
This corrects recent b26c892
From upstream debccfe4a445df8bb16c7a16387c810adffcef10
2024-10-30 18:07:42 +02:00
Walter Agazzi 58dfedf323 AGS: Engine: hide mouse cursor and engine overlay when fading-out
From upstream b26c8920894a0622f8640ce6cbfe369f75c08422
2024-10-30 18:07:42 +02:00
Walter Agazzi 38115f48b1 AGS: Engine: fixed Dissolve transition
From upstream 55f1d0376ef583b5f7d767e31c83e190c005246f
2024-10-30 18:07:42 +02:00
Walter Agazzi ee82074a47 AGS: Engine: further tidy up around agsplugin.h/cpp
* Moved plugin API event constants to a separate header agsplugin_evts.h.
Engine should not include whole plugin API, this is unnecessary, and may
 create naming conflicts.
* Moved SimulateMouseClick to mouse.cpp.
* Minor cleanup in agsplugin.cpp

From upstream 510293c1fd277d853544534423ceea27b8ae3e2d
2024-10-30 18:07:42 +02:00
Walter Agazzi cec77078f6 AGS: Convert several files to new API registering 2024-10-30 18:07:42 +02:00
Walter Agazzi b580078759 AGS: Engine: implemented "after fade-out" room callback, and global event
From upstream d3057943e5f979d9386c412d62e8e2e953a623c5
2024-10-30 18:07:42 +02:00
Walter Agazzi 09039ca805 AGS: Engine: brought multivariant script api functions to naming consistency
The idea is that the old variants have internal names with number
(signifying number of args), while the latest variant has a name without number.

Make sure there's a distinct function for each variant, and older vars are calling later ones in a sequence.
These calls likely to be inlined.
From upstream ca48926a37e848a1bcc162f77cc81e63ec7a1ca0
2024-10-30 18:07:42 +02:00
Walter Agazzi 2cfe391a12 AGS: Engine: Revert default opaque flag in screen transitions
MM Deluxe uses transparency in screen transitions, so it should be preserved
2024-10-30 18:07:42 +02:00
Walter Agazzi e8248f3a46 AGS: Engine: mark transition screenshot screen as opaque texture
This is a minor perf optimization.
+ added couple of TODO comments.
From upstream 33a7a29d35f53bf0d389eb69f85bbb68bd172dd3
2024-10-30 18:07:42 +02:00
Walter Agazzi 7ca114ea49 AGS: Engine: made FadeIn and FadeOut functions look consistent
From upstream 95c4362271734c5cb724b314d7cc555f752e06a8
2023-04-29 13:11:41 +02:00
Thierry Crozat 3dee5bb762 AGS: Script API: add "restrictToViewport" arg to Screen.ScreenToRoomPoint()
This argument works similarily to Viewport.ScreenToRoomPoint():
if it's set to true then the function returns null if there's no
viewport under the cursor; if it's set to false it converts
coordinates through the primary viewport in such case.

From upstream 5014c502aa487d3cbdf01e99d57306f2131d4c54
2022-12-15 22:40:17 +01:00
Paul Gilbert 2d995bbe07 AGS: Simplified use of ReplaceBitmapWithSupportedFormat()
From upstream 2132ba833b9d4508ed3f81a65f531b88f6087cb5
2022-03-14 21:33:38 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
Paul Gilbert bf3c05128d AGS: Move screen.cpp globals to Globals 2021-03-12 20:44:13 -08:00
Paul Gilbert 2d82d32577 AGS: Move draw.cpp globals to Globals 2021-03-09 21:14:02 -08:00
Paul Gilbert 37b563ef35 AGS: Move game globals to Globals 2021-03-07 19:23:24 -08:00
Paul Gilbert f060408108 AGS: Move palettes into Globals 2021-03-07 14:27:20 -08:00
Paul Gilbert 334b2a9d48 AGS: Move play to Globals 2021-02-27 15:31:34 -08:00
Paul Gilbert 1a8ae27b58 AGS: Move game & spriteset into Globals 2021-02-26 21:28:53 -08:00
Paul Gilbert cd017a73c7 AGS: Revert Standardization of number types
This reverts commit a96422af52.
2021-02-16 19:45:02 -08:00
Paul Gilbert a96422af52 AGS: Standardization of number types
This not only simplifies all the use of _t types to the
ScummVM equivalents, it gets rid of the int32 usage in
favor of just int, solving common type clashes with the
Amiga, for which int doesn't match int32
2021-02-13 11:38:55 -08:00
Paul Gilbert d6b8c21557 AGS: Merged engine/plugin/ into plugins/ folder 2021-02-06 16:37:31 -08:00
Paul Gilbert fe46be9223 AGS: Added engine/ac/ folder 2021-02-06 16:37:31 -08:00
Paul Gilbert 9a78e04039 AGS: Beginnings of engine/ inclusion 2021-02-06 16:37:31 -08:00
Paul Gilbert a7a9ca0543 AGS: Adding AGS3 namespace to cpp files 2021-02-06 16:37:31 -08:00
Paul Gilbert d8e471b03c AGS: Changing Common namespace to Shared 2021-02-06 16:37:31 -08:00
dreammaster 8026e4bb30 AGS: Run astyle formatting 2021-02-06 16:37:31 -08:00
Paul Gilbert bd6a58d1a1 AGS: Adding ScummVM comment headers 2021-02-06 16:37:31 -08:00
Paul Gilbert a60d290a08 AGS: Initial addition of engine/ and shared/ folders 2021-02-06 16:37:31 -08:00