Originally Posted by Aiiane
FWIW, zo_callLater is just a wrapper around an OnUpdate check. The zo_callLater function is implemented in Lua as part of the base game's Lua UI modules.
Specifically, zo_callLater is a wrapper around a function that calls EVENT_MANAGER:RegisterForUpdate to register a function which then calls EVENT_MANAGER:UnregisterForUpdate the first time it runs. EVENT_MANAGER:RegisterForUpdate in turn is a wrapper around OnUpdate which checks to see if it's time to fire various callbacks after each frame.
|
Where do you find out such things?