Are you sure another addon or another section of your addon isn't doing it? By default PetFrame is parented to PlayerFrame so if the PlayerFrame is hidden then the PetFrame should also be hidden.
Edit:
If your PetFrame is not parented to PlayerFrame like it seems then you will need to add <frame>:RegisterUnitEvent("UNIT_PET", "player") to your event handler and add code to deal with that event.
Last edited by Vrul : 08-07-18 at 07:15 PM.
Reason: Added more info
|