View Single Post
12-01-12, 01:42 AM   #6
Ekaterina
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 65
A bit of testing indicates that possibly once it's hidden, the frame then won't receive the 'click' again to unhide.

Try using in your onclick:
Lua Code:
  1. if pressed then -- if the  mouse button is pressed while over the frame do the following
  2.  
  3.  if self:GetAlpha() > 0 then -- checks to see if the alpha of the frame is greater than 0 (invisible)
  4. self:SetAlpha(0) -- if so make it invisible
  5. else
  6. self:SetAlpha(1)  -- otherwise make it fully visible, which should return it to the setting you set in the kgpanels config screens.
  7. end
  8. end

self here just means that it's referring to the frame that you are attaching the scripts to.

The parent frame alpha also effects the children frames, so this should hide all three.

Last edited by Ekaterina : 12-01-12 at 01:47 AM.
  Reply With Quote