View Single Post
07-31-16, 03:07 AM   #1
Venkx
A Defias Bandit
Join Date: Sep 2012
Posts: 2
KgPanels + Grid2 - Only load panel while grouped

Hi, I have a little problem with the parenting of the grid frame
If I only set "Grid2LayoutFrame" as Parent, it will be loaded all the time, I guess it's because of the anchor?
For solo-play I chose "none", because i don't need Grid for questing, I have my Unitframes for that.

Now, I searched google and found the following code for "on load"
Code:
self:ClearAllPoints()
self:SetPoint("TOPLEFT", Grid2LayoutFrame, "TOPLEFT", -2, -9)
self:SetPoint("BOTTOMRIGHT", Grid2LayoutFrame, "BOTTOMRIGHT", 2, -2)
This is even better than what I had in mind, but then, during soloplay it looks like this:


Does anyone know of a way to avoid this? I only want the panel to show when I'm in a group, because I only need grid when I'm in a group.
  Reply With Quote