Originally Posted by Sasky
As such, you'd need to hook into the callback creation of the dataControl and make sure that for each object created, your structure is there. researchAssistant does this with:
Lua Code:
local hookedFunctions = DECONSTRUCTION.dataTypes[1].setupCallback DECONSTRUCTION.dataTypes[1].setupCallback = function(rowControl, slot) hookedFunctions(rowControl, slot) AddResearchIndicatorToSlot(rowControl) end
(which is essentially doing ZO_PreHook on the setupCallback).
|
Except that this is actually a post-hook, since the new function gets run after the original, not before. (I suspect that if you pre-hooked the setupCallback, your data would immediately get clobbered, like it is now.)