Thread Tools Display Modes
08-01-08, 04:37 PM   #1
LBXZero
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 61
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.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » An Ackward IsVisible problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off