Here is what I have so far:
lua Code:
SLASH_PANE1 = "/pane"; -- creates the slash command to toggle the pane on and off.
SlashCmdList.PANE = function(arg)
BottomPane:SetShown(not BottomPane:IsVisible())
PlayerFrame:SetShown(not PlayerFrame:IsVisible())
MinimapCluster:SetShown(not MinimapCluster:IsVisible())
end
What I am trying to figure out is how to toggle, if you will the party frame when the /pane command is used.
I also tried working with hiding the UIParent, but then the pane would not show.
Any thoughts? Am I going the wrong way with this?
- Thanks!