994 Commits

Author SHA1 Message Date
Le Philousophe
c5e39ab5e3 AGS: Fix int vs int32 discrepancies 2022-05-03 23:36:12 +02:00
D G Turner
437678110e AGS: Fix GCC Compiler Warnings 2022-05-02 16:19:16 +01:00
Paul Gilbert
ebe2096af7 AGS: Call unload_game_file() in quit()
From upstream 1118be9d3f09037b995554d7aad47a400a76fafc
2022-05-01 17:23:26 -07:00
Paul Gilbert
4cd0ca9a27 AGS: Removed DrawAsSeparateCharSprite walk-behind method
From upstream e075376fd42c95ea2399809b7cc492cbc116b0db
2022-05-01 17:23:25 -07:00
Paul Gilbert
d9da1e3759 AGS: Don't try rendering gui controls with zero size
From upstream 84179aecc419cc8feb56b947bb7519e69062fe70
2022-05-01 17:23:25 -07:00
Paul Gilbert
8ac8c037c9 AGS: Use transform_sprite() with overlays for consistency
From upstream f0a1c70836d10330f16723eb304821211b1f1bdf
2022-05-01 17:23:25 -07:00
Paul Gilbert
d3f8627678 AGS: Refactored scale_and_flip_sprite() into transform_sprite()
From upstream 3a3f301709b65e6293028541df8fea084f9da7f9
2022-05-01 17:23:25 -07:00
Paul Gilbert
3b91a1124f AGS: Made internal BitmapFlip enum match the script, for convenience
From upstream 8be85c08ed87a56265d2f18fb798ec463edb3ef7
2022-05-01 17:23:25 -07:00
Paul Gilbert
87994139f6 AGS: Tidied gui drawing code a little
From upstream c1bb2fb846c8ffe997ce2c1dda690467bc28edc4
2022-05-01 17:23:24 -07:00
Paul Gilbert
f840223533 AGS: Fixed GUI's background image with alpha channel
From upstream d3820e0fd369516008633bbc12fc3da359067798
2022-05-01 17:23:24 -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
3b20393a17 AGS: Implemented gui control transparency in software mode
From upstream bcffc2cdeb24a426e2b048e8a98df9c84cb7c6f2
2022-05-01 17:23:23 -07:00
Paul Gilbert
8319217b7a AGS: Added GUIControl.Transparency
From upstream a7c406b1d162bf9ac3896ecb8e26bc6d5327ecfe
2022-05-01 17:23:23 -07:00
Paul Gilbert
8b027e0d82 AGS: Support sprite batch's alpha
From upstream 190897b97c8959954fea3f3561923e1b1c73a2b6
2022-05-01 17:23:23 -07:00
Paul Gilbert
b9a9b00974 AGS: Graphic renderers use correct alpha as sprite transparency
From upstream d2502a5240c6c06eb2fb65a9bf90b30584d79051
2022-05-01 17:23:23 -07:00
Paul Gilbert
fbd328b0ae AGS: On changed or deleted dynamic sprite, also update sliders
From upstream f675c7ff7eb33bc2969098ab59afffac078b95bb
2022-05-01 17:23:23 -07:00
Paul Gilbert
ec170ebd2f AGS: More strict MarkChanged use for gui controls, on changes only
From upstream 1383ff33eb4620eae18598f96f7e0cc948977174
2022-05-01 17:23:22 -07: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
53e1c22185 AGS: Fixes for the updated sprite batch system
From upstream db57e5b06aaf60728e1ade30a61f84d5850596dc
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
d52e2fb954 AGS: Gui control textures are rendered as gui sub-batches
From upstream 663394adb286384ba1b03ad95abc93a8dac40b05
2022-05-01 17:23:21 -07:00
Paul Gilbert
fec8ab3183 AGS: Simplified DrawSpriteWithTransparency() a little
From upstream 38922c2eb62b8082ae7ba07f07a8fe2192f1bac5
2022-05-01 17:23:21 -07:00
Paul Gilbert
d09117334d AGS: Removed obscure hack in DrawSpriteWithTransparency()
From upstream 083d8496f2d7c0eedc31c068ddf27720dee4ff2b
2022-05-01 17:23:20 -07:00
Paul Gilbert
2f558ae1ed AGS: Fixed 8-bit sprites unexpectedly converted on load
From upstream b9804f5ac307e390de205b20f7c803dcf6812df2
2022-05-01 17:23:20 -07:00
Paul Gilbert
2b96f0ff67 AGS: Sprite batches may have parents
From upstream 369b3985400284df53695cee4d3f8f2dfc138beb
2022-05-01 17:23:20 -07:00
Paul Gilbert
9fff1dc1fa AGS: Separate sprite lists and batch lists in renderers
From upstream ccbf3d16788720e94e5362ff8aeae1e32b4febe5
2022-05-01 17:23:19 -07:00
Paul Gilbert
a476850123 AGS: Calculate visible graphic size of gui controls for textures
From upstream a91bec5f3fa7f37187a084cabd0ab2289e609a6e
2022-05-01 17:23:19 -07:00
Paul Gilbert
2df62bdd55 AGS: Only redraw gui controls when they are marked as changed
From upstream 27a6bd6a13494cd670fb6749e5bd663f088487ea
2022-05-01 17:23:19 -07:00
Paul Gilbert
c768b94cf6 AGS: Draw GUI Controls on separate textures
From upstream 5cbe36626842ddd900cbda8fd4b6ddfc3804456f
2022-04-29 22:20:41 -07:00
Paul Gilbert
62ebde86a1 AGS: Gui controls draw themselves at requested offset
From upstream 9e9c8ffafe465b907ed0d22bcb1ba4df06803b8b
2022-04-29 22:20:40 -07:00
Paul Gilbert
673c8c242e AGS: Split GUIMain::DrawAt into DrawSelf and DrawWithControls
From upstream d353f8151d77c1c9e66f8b1aed7b24ecbadf0609
2022-04-29 22:20:40 -07:00
Paul Gilbert
403892950c AGS: Removed ListBox::DrawItemsFix, add preview items externally
From upstream af126ccdef791d6f97a65018bc3188e9767d399f
2022-04-29 22:20:40 -07:00
Paul Gilbert
2ab7985361 AGS: Revert "Engine: fixed AdjustBitmapForUseWithDisplayMode()"
From upstream 36e7d53fc1da189e402d9089c580d15844c6d4b5
2022-04-29 22:20:39 -07:00
Paul Gilbert
8d588c3a30 AGS: Fixed on_key_press not called all times
From upstream ffb73a0a7488e16b26c969b7efb3ca035f7dcea4
2022-04-29 22:20:39 -07:00
Paul Gilbert
d2b03800c6 AGS: Allow to place sounds on a crossfade channels for compatibility
From upstream 86564e983572b4ffb3cd12b00c116ae91c6fcbe4
2022-04-29 22:20:39 -07:00
Paul Gilbert
6ee31a530e AGS: Removed unnecessary ags_domouse() calls
From upstream de28de1dd44d991a479ae0adb5fdb4996fe33656
2022-04-29 22:20:39 -07:00
Paul Gilbert
21ab95f5ab AGS: Remove RegisterGameWithGameExplorer()
From upstream 1554207f04dc6999994d02956587b302bb56f858
2022-04-29 22:20:39 -07:00
Paul Gilbert
99c97541e4 AGS: Set current savegame version to 360beta
This is a portion of upstream 018d8790f8a8f3d39088cedace98b52d7ef730db,
but I didn't implement all of it, because we still need savegame
thumbnails for showing in the GMM
2022-04-29 22:20:38 -07:00
Paul Gilbert
0490236774 AGS: Use old-style keycodes for internal engine commands
From upstream e2f8b0f2357d2587016425ff6629ef37601d8e0f
2022-04-29 22:20:38 -07:00
Paul Gilbert
72f8cbd0dc AGS: fixed few more warnings
From upstream 9de3edd60f1eb3244f6bd3f25d688b75b82a4776
2022-04-27 20:56:17 -07:00
Paul Gilbert
68e5184afa AGS: Replaced some (v)sprintfs with sNprintf counterparts
From upstream a34bd392249f87a152dc470d90c67a7d193a28d8
2022-04-27 20:51:30 -07:00
Paul Gilbert
23a2e8c709 AGS: More config parse helpers: reading boolean ints, min-max range
From upstream 9737cabb8e7562122f8c471793bd994685d72bfe
2022-04-27 20:38:38 -07:00
Paul Gilbert
7b0bfee7cc AGS: Renamed and moved INIread/write functions for proper org&style
From upstream 18398a7d695e81575218380e1bba28010c239fdc
2022-04-27 20:25:31 -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
1ba7d8435f AGS: Scale debug overlays when necessary
From upstream cbbf2a0f8344fa4a5f7d91de927636c208bc446d
2022-04-27 20:25:25 -07:00
Paul Gilbert
ae0609ae51 AGS: in the new key input mode, only update key state once a frame
From upstream 8c456d2e4b3c9e24f883522b59b4c73d422e4c28

Not sure if this will actually do so, since there may be other places
in the ScummVM event handler where event polling may be done.
2022-04-27 19:31:40 -07:00
D G Turner
ead607938b AGS: Fix Various Signed vs. Unsigned Comparison GCC Warnings 2022-04-27 12:25:46 +01:00
Paul Gilbert
1ab42991d1 AGS: Added more event constants, clarified couple event calls
From upstream ae6862f7917832ebc5f2314561938c01725ac8a2
2022-04-25 22:11:42 -07:00