I'm trying to make a small add-on that would enable me to show/hide certain bartender bars through a slash command.
Here is what I've done so far.
Code:--BartenderToggle.lua SLASH_TOGGLEBARS1 = '/togglebars'; local function toggler() if (BT4Bar1:IsVisible()) then BT4Bar1:Hide() BT4Bar2:Hide() BT4Bar3:Hide() else BT4Bar1:Show() BT4Bar2:Show() BT4Bar3:Show() end end SlashCmdList["TOGGLEBARS"] = toggler;The slash command is not working and I can't figure out what is wrong with it. I'm not sure if the rest of the LUA is correct or not because I can't test it.Code:--BartenderToggle.toc ## Interface: 40300 ## Title: |cffFF0088BartenderToggle
Any help is appreciated.