RegisterEventHandler: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==registerEventHandler== Registers an event handler function for a specific event. Lua Syntax: <pre>registerEventHandler(event, eventHandler)</pre> ===Arguments=== ====event==...") |
(No difference)
|
Revision as of 22:54, 2 August 2011
registerEventHandler
Registers an event handler function for a specific event.
Lua Syntax:
registerEventHandler(event, eventHandler)
Arguments
event
- "string" - The event which triggers the event handler to be called. Currently supported events: "mainLoop", "animationStarted", "animationStopped", "textStarted", "textStopped".
eventHandler
- "string" - The name of the lua function which is called when the event occurs. The function (except for "mainLoop" event handler) should take exactly one argument which is the affected visionaire object. There are no arguments for the "mainLoop" event handler.
Flags
Return Values
None.