View Single Post
08-31-10, 08:41 AM   #270
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Originally Posted by ajester099 View Post
I am attempting to use KGPanels to call an entire 'bar' and make it visible when I press a macro. Currently I can do this only by coding 1 button at a time. How would one find the name of an entire bar rather than just a button.

This script:
/print GetMouseFocus():GetName()

Tells me what the button names are...

I.E. MacaroonButton12

Also, when I am in bar edit mode it gives me a name...

I.E. MacaroonBar3

However, when I code:

if MacaroonBars3 then
if released then
if MacaroonBars3:IsShown() then
MacaroonBars3:Hide()
else
MacaroonBars3:Show()
end
end
end

It actually puts me into bar edit mode instead of showing the bar.

Long post short, how do I get an entire BARS name instead of just button names?

Thanks in advance! Best bar mod ever!
/print GetMouseFocus():GetParent()
__________________