View Single Post
01-07-19, 04:48 AM   #1
candrid
Premium Member
 
candrid's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 61
Hiding Frames (party in this case)

Here is what I have so far:

lua Code:
  1. SLASH_PANE1 = "/pane"; -- creates the slash command to toggle the pane on and off.
  2. SlashCmdList.PANE = function(arg)
  3.   BottomPane:SetShown(not BottomPane:IsVisible())
  4.   PlayerFrame:SetShown(not PlayerFrame:IsVisible())
  5.   MinimapCluster:SetShown(not MinimapCluster:IsVisible())
  6. 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!
  Reply With Quote