View Single Post
05-04-09, 10:07 PM   #16
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by Grimsin View Post
<snip> There is a bit of script that will open/close macaroon bagbar/menubar

its not small.... lol. <snip>
Here's the same script, condensed:

Code:
for i = 1, 5 do
        local bag_btn = _G["MacaroonBagButton"..i]
        if bag_btn:IsVisible() then
                bag_btn:Hide()
        else
                bag_btn:Show()
        end
end

for i = 1, 11 do
        local menu_btn = _G["MacaroonMenuButton"..i]
        if menu_btn:IsVisible() then
                menu_btn:Hide()
        else
                menu_btn:Show()
        end
end
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote