WoWInterface - View Single Post - Calling or hooking local functions of another addon?
View Single Post
11-10-18, 09:59 AM   #4
A Frostmaul Preserver
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 285
Originally Posted by Nimhfree View Post
I believe there is no way to access the local functions from outside, so the only way really would be to reimplement the local functions with your version and then continue to reimplement the callers all the way up until you get them all.
Correct. When people post code on this forum you will commonly see one of the first things said to them is to convert their unnecessary global functions to their addons local scope to prevent any potential overlapping/interference between other addons. The only way you're going to be able to hook an addons function is if the desired functions are global. You've mentioned you've been using a fork of DynamicCam so really you could just go in and convert the functions to global and then proceed that way.
AddOns: Tim @ WoWInterface
Characters: Hunter, Mage, Priest, Monk, DH,
Battle Tag: Tim#11172
Current PC Setup: PCPartPicker List
  Reply With Quote