View Single Post
08/21/14, 09:43 PM   #13
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Garkin View Post
I'd like to hook ZO_LeaderboardRaidProvider but it's local to EsoUI\Ingame\Contacts\Notifications.lua.
Sorry for the jumble of 1,000 different ideas :P and I still see nothing wrong with what you did, but another option is that you could also hook: NOTIFICATIONS:BuildMasterList().

It would be the same result as what you did so this may not be useful for what your doing, but I saw it & thought I would point it out in case you (or anyone else reading this post later) had any reason to hook any other notifications it might be easier to grab them all in one place:
Lua Code:
  1. -- hook this:
  2. function ZO_NotificationManager:BuildMasterList()
  3.     for i = 1, #self.providers do
  4.         self.providers[i]:BuildNotificationList()
  5.     end
  6. end
  7. -- with this:
  8. --function NOTIFICATIONS:BuildMasterList()

and just intercept self.providers[10] (or whatever provider is needed).

Last edited by circonian : 08/21/14 at 09:46 PM.
  Reply With Quote