View Single Post
12-09-07, 12:07 AM   #5
gromlv
A Fallenroot Satyr
 
gromlv's Avatar
Join Date: Jun 2006
Posts: 21
Originally Posted by Viserion
I don't know about the fading part as I don't have access to wow atm but this is what I use for the showing/hiding of a frame when a target exists:

Code:
function eePanels2:PLAYER_TARGET_CHANGED()
  if UnitExists("target")then
    THIS:Show()
  else
    THIS:Hide()
  end
end
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED")

this one worked PERFECTLY!
thx

1 more thing.
How the code wold look if i want to hide panel when i dont have pet under my control and show it when i do?

Last edited by gromlv : 12-09-07 at 12:15 AM.
  Reply With Quote