RegisterForEvent vs. RegisterForUpdate
/zgoo EVENT_MANAGER
I see there are RegisterForEvent and RegisterForUpdate methods exposed by EVENT_MANAGER. RegisterForEvent is obvious to me, but what is the intended use of RegisterForUpdate? |
Wow, nice find. It allows you to bind an update handler to your addon, 2nd argument is how often to poll in milliseconds.
e.g. Code:
EVENT_MANAGER:RegisterForUpdate(self.name, 2000, function(millisecondsRunning) |
Well now I'm curious.. how were you able to resolve the input parameters? This has been one of my larger problems in understanding the API calls.
|
Quote:
|
That's a valid description of the current API: guesswork :D
|
All times are GMT -6. The time now is 09:54 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI