An Ackward IsVisible problem
For my mod, I have to replace a standard blizzard frame. Now mod B makes a request to the standard blizzard frame to see if it is visible (BlizzFrame:IsVisible()). But this will be always false even though MyMod will be visible.
What I want to do is have BlizzFrame:IsVisible() return MyMod:IsVisible(). How can I pull this off without having to setglobal("BlizzFrame",MyMod)?
Why I want to avoid the setglobal solution is that I do not want to lose BlizzFrame because MyMod has a switch to change over to BlizzFrame.
Nevermind. I figured out that I had to make a simple named function to perform MyMod:IsVisible() so I can properly hook the functions. Can't hook by BlizzFrame.IsVisible = MyMod.IsVisible;
Last edited by LBXZero : 08-01-08 at 04:48 PM.
|