Commit Graph
52 Commits
Author SHA1 Message Date
Thierry Crozat 30038fe426 AGS: Store certain overlay handles, not script ptrs, for safety
From upstream b73553d6b4655feec2f82ee1feaa67a6bc9fca23
2022-06-19 20:50:24 +01:00
Thierry Crozat 4d2d8b45d4 AGS: Fixed trying to erase background speech overlays twice
From upstream 5f137874738c86852b5ef7da2933fab7e78ae89b
2022-06-18 18:32:09 +01:00
Thierry Crozat 1cd8fa0d30 AGS: Fixed CreateTextCore not passing room layer flag further
From upstream e5aaa87573c6357edeb50a526892619ff748ea12
2022-06-18 01:03:30 +01:00
Paweł Kołodziejski 9b95bfd218 AGS: Silence const casts 2022-05-30 16:38:11 +02:00
Paul Gilbert f782f0f2b2 AGS: Implemented Overlay.Graphic
From upstream b3ca7d110664f29f54c11315400486a0fc11d33a
2022-05-08 11:37:49 -07:00
Paul Gilbert a8ebf2b41b AGS: Added "clone" parameter to Overlay.CreateGraphical()
From upstream 2a7adfb6a3424017913c9a6c240525029debf1e0
2022-05-08 11:37:49 -07:00
Paul Gilbert 3ac6998a98 AGS: Support Overlays not copying the image, but storing a sprite id
From upstream fd14bd4075bd9e6a577235f2434275b260250c46
2022-05-08 11:37:49 -07:00
Paul Gilbert d323d2388b AGS: Added readonly bool Overlay.InRoom
From upstream 481f9208c93b12e432bb0454b67b808e0921bc2b
2022-05-06 20:16:42 -07:00
Paul Gilbert 7282304951 AGS: Script API: implemented room overlays
From upstream 65a7cd7e7566d3a1111be10b70dcb51b1853cd88
2022-05-06 20:16:42 -07:00
Paul Gilbert cf091f2d3e AGS: Replaced couple of variables in ScreenOverlay with flags
From upstream 38a4e8c262f0ec796225494fc939b283680caf57
2022-05-06 20:16:41 -07:00
Paul Gilbert 0e1350a8d0 AGS: Make sure custom overlays connect with script ref properly
From upstream c5a99b1f07b51dfc28bb72dd235ce731e6b94dce
2022-05-05 23:06:49 -07:00
Paul Gilbert ec38c1c61c AGS: Refactor core overlay creation funcs to return ScreenOverlay*
From upstream f89b2e8e59da107fcbb7a75bf7e1aa293a45fb2b
2022-05-05 22:41:10 -07:00
Paul Gilbert 86c363a8dd AGS: Remove ScriptOverlay.hasInternalRef flag, add actual ref
From update ef0655b601004983d13dab99092d708b080eef23
2022-05-05 22:41:10 -07:00
Paul Gilbert b1649597d7 AGS: Replaced Math/std Min/Max with ScummVM macros
Inspired by 6dee5ee6f271c600e30879d892295ea6069e8cc9
2022-05-05 22:41:10 -07:00
Paul Gilbert 84a3925442 AGS: Simplified the use of get_overlay_position()
From upstream d673fb3822907fd01bf0e2c6f98bee04a8a5b17b
2022-05-05 22:41:09 -07:00
Paul Gilbert 6482e38803 AGS: CharacterExtras and MoveLists are stored in std::vector
From upstream 0c81cfefb788c0dcfdb2cad914f939f28110edca
2022-05-05 22:41:08 -07:00
Paul Gilbert 684463c903 AGS: Implemented readonly Overlay.GraphicWidth & GraphicHeight
From upstream dbfa017cf808beb4522c260f4a9cce20ac0009ee
2022-05-01 17:23:24 -07:00
Paul Gilbert b2d5b6e586 AGS: Implemented Overlay.Width & Height working as scaling
From upstream 3a27e81a710a1c3de4b745d84dca39554dc64385
2022-05-01 17:23:24 -07:00
Paul Gilbert 8ecb108f93 AGS: Rename ScriptOverlay's member to better reflect its purpose
From upstream 55a0b521c2f7c269ec4d9f41b4fd7f43d2a85af0
2022-04-27 20:25:30 -07:00
Paul Gilbert 8f01b30061 AGS: Reactored ScriptOverlay, removed duplicate offset variables
From upstream 634d6e20a1d2249de3125774491ff00959294dc8
2022-04-27 20:25:30 -07:00
Paul Gilbert a3dda03cf1 AGS: Store Views in std::vector
From upstream 095db88ae0f1acceb298f793a2e1b81dbe06fcff
2022-03-18 21:29:56 -07:00
Paul Gilbert 659be0a4e6 AGS: Fixed few warnings
From upstream b416d55eb74745db0da5a3cb2654e063cd057ded
2022-03-17 21:49:23 -07:00
Paul Gilbert 731db80bb4 AGS: Script API Overlay.Transparency
From upstream c2d63eb32ec9c8653f0b0b24f7a1b4e1fc24aa89
2022-03-15 22:28:39 -07:00
Paul Gilbert 796c2dcd0e AGS: Overlay.ZOrder and use zorder for custom overlays
From upstream 4be229bfbfe808384cea8ea724d72fcd6a0ca094
2022-03-15 22:28:39 -07:00
Paul Gilbert 6bf83c7f39 AGS: Removed Overlays' arbitrary limit
From upstream 735dcfb14069b38aace4cef9468d44b63349d1bd
2022-03-15 22:28:36 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert 895c8d22c1 AGS: implemented readonly Overlay.Width and Height
From upstream a75f02dcbc694450c15d93a273e6885eb9037447
2021-08-17 21:31:56 -07:00
Paul Gilbert 217e55e2d9 AGS: Speech.PortraitOverlay for accessing speech portrait overlay
From upstream 7e9d785262915112d5c4d3f435ef33e22de95fc7
2021-07-27 22:03:37 -07:00
Paul Gilbert c133e51620 AGS: Speech.TextOverlay for accessing blocking speech overlay
From upstream 1affbd4d57686e3080ebdb21a0cd33ee4af04b75
2021-07-27 22:03:37 -07:00
Paul Gilbert 9612b5cb35 AGS: distinct overlay types of speech and messagebox
From upstream d7c091890d2cde07776cca4ebbed7352d379612d
2021-07-27 22:03:37 -07:00
Paul Gilbert 0274540d47 AGS: Implement remaining plugin core export classes 2021-07-17 15:52:11 -07:00
Paul Gilbert b104d78888 AGS: Enabling disabled blocks, and making ScummVM needed changes 2021-06-13 21:08:50 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
D G Turner 819b4230bc AGS: Fix GCC Compiler Warning 2021-04-17 01:28:41 +01:00
Thierry Crozat 543f17b160 AGS: Improve code for finding unused overlay custom ID
This should not matter for old and current games as AGS 2
and 3 limit the number of overlays to 20, but this code
would work with any number of overlays, as is possible
with AGS4 games.
2021-04-11 22:07:56 +01:00
Thierry Crozat 0c3be802d8 AGS: Fix logic to find available custom overlay ID
The wrong logic meant that it could use OVER_CUSTOM when
it was meant to use at least OVER_CUSTOM + 1.
This fixes bug #12388.
2021-04-11 03:59:24 +01:00
Paul Gilbert 2d82d32577 AGS: Move draw.cpp globals to Globals 2021-03-09 21:14:02 -08:00
Paul Gilbert dc019af530 AGS: Move character.cpp globals to Globals 2021-03-08 19:04:35 -08:00
Paul Gilbert 37b563ef35 AGS: Move game globals to Globals 2021-03-07 19:23:24 -08:00
Paul Gilbert acf3a6e080 AGS: Move overlay.cpp globals to Globals 2021-03-01 19:52:51 -08:00
Paul Gilbert 887472c8c1 AGS: Moved a lot of game.cpp globals to Globals 2021-02-28 13:27:21 -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 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