Pet Battle
If you want to hide a Texture while in a pet battle then this is gonna work.
OnLoad
self:RegisterEvent("PET_BATTLE_OPENING_START")
self:RegisterEvent("PET_BATTLE_CLOSE")
OnEvent
if event == "PET_BATTLE_OPENING_START" then
self:Hide()
elseif event == "PET_BATTLE_CLOSE" then
self:Show()
end
|