gre.action_trigger
gre.action_trigger(name, args)
Trigger a Storyboard action by name with the provided arguments.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | #string | The name of the action to invoke. |
args | #table | A table of parameters for the action. |
Example
---
-- Trigger a gra.screen.path transition
-- @param #string screenName
function PathScreenTransition(screenName, duration)
local argNames = greconst.SCREEN_PATH_ACTION
gre.action_trigger(
"gra.screen.fade",
{
[argNames.SCREEN]=screenName,
[argNames.DURATION]=400,
[argNames.FPS]=60,
[argNames.LAYERS]="Delta",
}
)
end