View Single Post
06-27-10, 06:32 PM   #266
ajester099
A Kobold Labourer
Join Date: Apr 2010
Posts: 1
Get the name of a bar

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!