View Single Post
01-06-13, 03:38 PM   #3
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
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
  Reply With Quote