2022-12-19 22:11:18 +01:00
|
|
|
---Load a scaleform movie. When called from a thread, it will yield until it has loaded.
|
|
|
|
|
---@param scaleformName string
|
2024-01-17 17:38:34 +11:00
|
|
|
---@param timeout number? Approximate milliseconds to wait for the scaleform movie to load. Default is 1000.
|
2024-03-31 16:15:44 +11:00
|
|
|
---@return number scaleform
|
2022-12-19 22:11:18 +01:00
|
|
|
function lib.requestScaleformMovie(scaleformName, timeout)
|
|
|
|
|
if type(scaleformName) ~= 'string' then
|
|
|
|
|
error(("expected scaleformName to have type 'string' (received %s)"):format(type(scaleformName)))
|
|
|
|
|
end
|
|
|
|
|
|
2024-03-31 16:15:44 +11:00
|
|
|
return lib.streamingRequest(RequestScaleformMovie, HasScaleformMovieLoaded, 'scaleformMovie', scaleformName, timeout)
|
2022-12-19 22:11:18 +01:00
|
|
|
end
|
|
|
|
|
|
2023-05-25 14:56:15 +10:00
|
|
|
return lib.requestScaleformMovie
|