gre.action_trigger

gre.action_trigger(name, args)

Trigger a Storyboard action by name with the provided arguments.

Parameters: name: The name of the action to invoke args: 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
Was this article helpful?
0 out of 0 found this helpful