WoW:UIHANDLER OnUpdate: Difference between revisions
Jump to navigation
Jump to search
m (catfix, Replaced: {{widgethandler}} → {{widgethandler}}<br>) |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{widgethandler}} | {{widgethandler}} | ||
The OnUpdate handler is called right before each frame is painted (i.e. between the processing of events and user actions, but before the UI elements are drawn onto the screen). It is invoked for every visible frame that declares an OnUpdate handler. | The OnUpdate handler is called right before each frame is painted (i.e. between the processing of events and user actions, but before the UI elements are drawn onto the screen). It is invoked for every visible frame that declares an OnUpdate handler. | ||
== Arguments == | == Arguments == | ||
* self (table) - the frame table | |||
* elapsed (number) - The time (in seconds) since the last OnUpdate dispatch (I'm not sure if this is based on when the last dispatch run started or ended, or if it's maintained per frame). Also note that it does NOT include time spent zoning, only actual time spent looking at the world. |
Latest revision as of 00:44, 7 October 2023
The OnUpdate handler is called right before each frame is painted (i.e. between the processing of events and user actions, but before the UI elements are drawn onto the screen). It is invoked for every visible frame that declares an OnUpdate handler.
Arguments[edit]
- self (table) - the frame table
- elapsed (number) - The time (in seconds) since the last OnUpdate dispatch (I'm not sure if this is based on when the last dispatch run started or ended, or if it's maintained per frame). Also note that it does NOT include time spent zoning, only actual time spent looking at the world.