Walter Agazzi
258f9fa795
AGS: Engine: fixed mouse cursor texture broken after RunAGSGame()
...
Partially from upstream 5ac3e6a97932a193250557eaa360d7e0b8e7b51f
2024-10-30 18:07:42 +02:00
Walter Agazzi
d904cac0c5
AGS: Script API: implemented Game.PrecacheSprite() and PrecacheView()
...
Partially from upstream 76aee247b7f8ae9eff613393a18192ceab4aca9f
2024-10-30 18:07:42 +02:00
Walter Agazzi
eefccd3067
AGS: Common: explicit LockSprite/UnlockSprite methods in SpriteCache
...
Reimplemented From upstream 8e2d2fc9329a393dcdcddbe29dd5cc7094793350
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
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
ab27a90568
AGS: Add sanity check for cursor value
...
While upstream AGS just silently ignores the value,
ScummVM isn't as permissive. Prevents assert in Alum
2024-03-04 15:38:53 +01:00
Walter Agazzi
7808fb52e6
AGS: Engine: tidied few remaining old functions in Mouse namespace
...
* minstalled -> Mouse::GetButtonCount();
* msetgraphpos -> Mouse::SetSysPosition() (internal);
* mgetgraphpos -> Mouse::Poll();
* msetcursorlimit -> merged with Mouse::SetMoveLimit();
* msethotspot -> Mouse::SetHotspot().
From upstream 9211b07f36528776e6fabc34a29405b6d63f6c23
2023-04-29 13:11:41 +02:00
Walter Agazzi
43bdb0d5c5
AGS: Script API: Mouse.AutoLock
...
From upstream f49501a18b48767184e5f3d5da355405e29ad9e
2023-01-17 17:27:07 +00:00
Thierry Crozat
5987bc5e6e
AGS: rewrote eAGSMouseButton enum to sync with the script API
...
* Changed from -1 - based constants to 0 - based constants;
* These were purely internal values, therefore no API would be harmed;
* Removed necessity of converting from internal mouse button code to script and back all the time;
* On a side note, this fixes a bug where WaitMouse etc were returning incorrect values on mouse skip, because we forgot to convert from internal to script code.
From upstream 471098d239b076c494beb2d554572ccb69372667
2022-10-10 00:16:16 +01:00
Thierry Crozat
06620b6e9f
AGS: renamed Button's MouseButton enum to avoid name confusion
...
Was conflicting with the internal engine's eAGSMouseButton constants.
From upstream a5cfccee2d3681b55dafb8cfb9e0f38f84124855
2022-10-10 00:16:16 +01:00
Paul Gilbert
17bac5b1ef
AGS: Removed redundant function domouse(int what)
...
From upstream 3dfda41382bdd10e3b2b78f797fade8b5dcc1efa
2022-04-23 18:15:02 -07:00
Paul Gilbert
dcb1099f2b
AGS: Cursor.AnimationDelay property and arg to ChangeModeView()
...
From upstream 7393b0a8ee8a23949b63cf8ba57eb1c4f4e381fd
2022-04-10 19:39:09 -07:00
D G Turner
6d7663b1b1
AGS: Fix Redundant Declaration Warnings
...
These are emitted by GCC when -Wredundant-decls is passed.
2022-03-09 15:28:19 +00:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Paul Gilbert
0274540d47
AGS: Implement remaining plugin core export classes
2021-07-17 15:52:11 -07:00
Paul Gilbert
cf3cc50981
AGS: Remove global macro from some strings and comments
2021-07-12 20:05:28 -07:00
Paul Gilbert
701396361c
AGS: Import of fresh codebase
2021-06-13 21:08:44 -07:00
Paul Gilbert
0a305db7ec
AGS: Move guimain.cpp globals to Globals
2021-03-12 21:39:16 -08:00
Paul Gilbert
3a0a70bc43
AGS: Move more game.cpp globals to Globals
2021-03-10 21:01:11 -08:00
Paul Gilbert
a5c4876862
AGS: Move mouse.cpp globals to Globals
2021-03-09 21:15:12 -08:00
Paul Gilbert
2d82d32577
AGS: Move draw.cpp globals to Globals
2021-03-09 21:14:02 -08:00
Thierry Crozat
2a02d999bd
AGS: Fix unresolved import 'Mouse::xxx' errors when starting games
2021-03-09 16:35:30 +00:00
Paul Gilbert
fd7116d342
AGS: Move mousew32.cpp globals to Globals
2021-03-08 21:12:00 -08:00
Paul Gilbert
804158fb75
AGS: Refactor Mouse namespace to be a struct
2021-03-08 21:12:00 -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
94423abaa1
AGS: Move usetup to Globals
2021-03-05 21:36:00 -08:00
Paul Gilbert
8c62ce9a14
AGS: Remove deprecated global_plugin.cpp
2021-03-02 19:59:35 -08:00
Paul Gilbert
b6dd902163
AGS: Move script.cpp globals into Globals
2021-02-28 16:41:48 -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
4b40b09ce0
AGS: Move mouse globals to Globals
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