Originally Posted by mankeluvsit
im trying to make my panel hide untill the frame is selected.
but, its not working
onload
onevent
and i know this hasnt to do with kgpanels, but every time i load wow, i have to re-scale my ui to minimal, cause it resets.
|
Stuf.units.target or anything like it are not units, they are "namespaced frame names". Valid examples of units are player, pet, target, focus, party1, raid1, etc.
Onload
Code:
self:RegisterEvent("PLAYER_TARGET_CHANGED")
OnEvent
Code:
if UnitExists("target") then self:Show() else self:Hide() end