Hooking function when other addons are using local copies of it
View Single Post
08-16-19, 05:56 PM
Join Date: Apr 2007
Oh, oops, I misread. I thought you were the one using a local copy. hooksecurefunc propagates local pointers as long as you hook before any localizations happen.
If you are in control of the addon that hooks, look into the UI addon and see where it localizes. It most likely localizes at file load, so you'll have to put a ! in front of your addon's folder name and toc file to make sure you load before the UI addon. If it localizes at PLAYER_LOGIN, you can hook anytime before that, such as file load or ADDON_LOADED.
If it's not your add-on, suggest what I suggested to the authors, preferably getting the UI addon author to not localize.
Lua Wall of Shame
Don't like combat text on frames?
Last edited by Kanegasi : 08-16-19 at
View Public Profile
Send a private message to Kanegasi
Find More Posts by Kanegasi