Commit Graph
63 Commits
Author SHA1 Message Date
Walter Agazzi fdab95b34b AGS: Engine: gui mouse handles accept mouse pos as arguments
* This also fixes GUI.ProcessClick, apparently it always had an issue of using mouse
coordinates instead of provided ones.
From upstream ab3561359eb23fe17ba0758741f139165eb1f13c
2024-10-30 18:07:42 +02:00
Walter Agazzi e158764267 AGS: Engine: unrestricted game name and save folder name
From upstream 3b06711da90621b2ee5ba33ff82da91f797cabbb
2024-10-30 18:07:42 +02:00
Walter Agazzi c6e115e697 AGS: Script API: added readonly ScriptName property to all applicable types
From upstream a19c52bae9d8513bcb68924c0c4f11717dde90e7
2024-10-30 18:07:42 +02:00
Walter Agazzi 455b9609d0 AGS: Script API: implemented Type.GetByName() for all applicable types
From upstream 29602688ec766cdc0b8fb7aa761f73292365651b
2024-10-30 18:07:42 +02:00
Walter Agazzi f13f7cfac2 AGS: Engine: rem the distinction between static/dynamic objects in script VM
From upstream 04450b2a41f0e0f107a4ea85dab375f439b4ffae
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 f62f270423 AGS: Engine: use enum for Text script callback types
From upstream 047f6fb020564bca9c6d99d1f6c1474386e3da97
2024-10-30 18:07:42 +02:00
Walter Agazzi 51cf1f1568 AGS: Engine: tidied code in RunObjectInteraction functions
From upstream c20764239b3a8a234c473feb4f7009afdc3c4c6d
2024-10-30 18:07:42 +02:00
Walter Agazzi dd8c13c1f0 AGS: Engine: replaced global evblock* vars with a local ObjectEvent argument
From upstream 279d3d78ff04423fce137a4907fd42d44ee12969
2024-10-30 18:07:42 +02:00
Walter Agazzi 959d894606 AGS: Engine: fixed first Sierra speechline not accounting for disabled gui
From upstream 34957df168f27d6eeffc0f821f0d2632af404b89
2024-10-30 18:07:42 +02:00
Walter Agazzi 0f14a257de AGS: Engine: tidied adjust_x/y_for_guis and skip offscreen GUIs
From upstream f4abff9ddf5dc70e26d2c6728044992a951c6645
2024-10-30 18:07:42 +02:00
Walter Agazzi 3a5ccd4cba AGS: Engine: moved dynamic object management functions to a separate unit
From upstream 1a9df937e3ac9eba0c2f5b663507a52569d635e0
2024-10-30 18:07:42 +02:00
Walter Agazzi c0cc23c570 AGS: Engine: remake ScriptGUI and ScriptDialog arrays into std::vectors
From upstream bc44a84892128250ebb08576e4640d0a2858d436
2024-10-30 18:07:42 +02:00
Hubert Maier e94b47c01a JANITORIAL: AGS: Fix typos 2024-09-11 11:01:26 +03:00
Le Philousophe 49b4c1b3c4 AGS: Revert to use std namespace
This allows to minimize changes from upstream
2024-07-08 21:37:28 +02:00
Paul Gilbert c2a476411c AGS: Move std namespace into common/std/ 2024-07-07 15:28:31 -07:00
Walter Agazzi 59e2d4955e AGS: Common: fix all_buttons_disabled's type, for clarity
from upstream a60eb5d2f484c1783f4a52f46dfcae94f5e07865
2024-03-28 12:02:40 +01:00
Walter Agazzi f0c18ccacb AGS: Engine: fixed GUI sorting for cases when ZOrder is equal
Was broken by fcc873e
From upstream ff210b2ce50cea0e903cd1d09fa7ad1734a862b0
2023-03-12 20:58:28 +00:00
Walter Agazzi 91d7299405 AGS: Engine: (again) fixed buttons not updated visually on interface enable
Complements / reimplements f310a08
From upstream b0e2fe40c1d73674a7b868a87152be6029df6cac
2023-03-12 20:58:28 +00:00
Walter Agazzi 61c7c0fcfe AGS: Engine: fixed gui controls not updated after interface is un-disabled
from upstream 126a5e4c97581aabadbbd4410441b83f371e18ea
2023-03-12 20:58:27 +00: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
Thierry Crozat e90fb00412 AGS: Replaced more strcpy with snprintf, for safety
From upstream 1b6cf053ebbe85e7ba6c5828e2582d757503bc16
2022-06-19 20:50:24 +01:00
Paul Gilbert 6ef504bba2 AGS: Store gui draw order in a std::vector
From upstream fcc873ef0c26439faf67100f4d70d540434ca9f5
2022-05-01 17:23:22 -07:00
Paul Gilbert 50b2b1af05 AGS: Replaced OnControlPositionChanged() with MarkControlsChanged()
From upstream 2f676fbad2b725fe0089de45ba9f925bc48ab586
2022-05-01 17:23:21 -07:00
Paul Gilbert 14cffd13e7 AGS: Use String::NoIndex instead of -1 where necessary
From upstream 56275cb1f58f630082f3f51ab8e2c0ab5b021b16
2022-04-24 16:00:04 -07:00
Paul Gilbert 3467180e39 AGS: Refactored GUIMain to not use mouse coords directly
From upstream 2f736d3365dc5fae6eebe353b64e16af156308f8
2022-04-23 17:56:20 -07:00
D G Turner ad7450d5ce AGS: Fix GCC Compiler Warnings 2022-04-19 11:42:26 +01:00
Paul Gilbert 2e24e08d5b AGS: Brought few "run script" functions to similar arg list
From upstream 78163a07400353013dd939ca86f5513f3196394a
2022-04-18 19:10:39 -07:00
Paul Gilbert 3425f8faf2 AGS: Moved couple of gui-related global vars into GuiOptions struct
From upstream 973d238a2c20368d8932ade22d2965d121cb7793
2022-04-10 19:39:06 -07:00
Paul Gilbert 731db80bb4 AGS: Script API Overlay.Transparency
From upstream c2d63eb32ec9c8653f0b0b24f7a1b4e1fc24aa89
2022-03-15 22:28:39 -07:00
Paul Gilbert 255a739eca AGS: Encapsulate game object draw caches in draw.cpp
From upstream e04ebc0039580faf017ceb0acbeeab975bf44fcc
2022-03-14 21:04:09 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01: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 b18e00e721 AGS: Implementing the core classes 2021-07-17 15:52:11 -07:00
Paul Gilbert 7acf944d05 AGS: Fixed GUI controls not detected under mouse after enabling iface
From upstream f310a087390b8845916222695618b561156b4c8a
2021-06-27 09:39:51 -07:00
Paul Gilbert eb1e337edd AGS: Removed String's "const char*" conversion operator
From upstream 7c426674e7e53bffe9120f8ffc059b77fa03a606
2021-06-13 21:08:59 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
Paul Gilbert bc8c92c2f9 AGS: Replace QFG2 workarounds with generic upstream fix
This applies commit b07ddea6d2a16cd4e77e687675853dbc914b15ca
2021-04-17 16:37:13 -07:00
Paul Gilbert 0a305db7ec AGS: Move guimain.cpp globals to Globals 2021-03-12 21:39:16 -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
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 f05ad88320 AGS: Move gui.cpp globals to Globals 2021-03-08 18:41:26 -08:00
Paul Gilbert d12bb69417 AGS: Move event.cpp globals to Globals 2021-03-08 18:29:32 -08:00
Paul Gilbert 34c86ce1a1 AGS: Removal of commented out includes 2021-03-06 19:43:13 -08:00
Paul Gilbert 94423abaa1 AGS: Move usetup to Globals 2021-03-05 21:36:00 -08:00
Paul Gilbert acf3a6e080 AGS: Move overlay.cpp globals to Globals 2021-03-01 19:52:51 -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