i used this script for my target panel, yet the target frame (not the panel its on) still shows even when im out of combat.
Show a panel based on being in combat
OnLoad
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
OnEvent
if event == "PLAYER_REGEN_ENABLED" then
self:Hide()
elseif event == "PLAYER_REGEN_DISABLED" then
self:Show()
end
anyone know a way to make it show only when in combat, as well as my player frame?
thanks
Last edited by ffxiedyn : 01-06-10 at 07:08 PM.
|