WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Default frame supression. (https://www.wowinterface.com/forums/showthread.php?t=2658)

Mokaikai 12-15-05 01:15 PM

Default frame supression.
 
In one of my mods i need to ensure that the default petframe does not ever show up. Until now I have been accomplishing this by using PetFrame:Hide() on load and on update. I'm sure there has to be a more effecient method of making sure the frame never even registers.

Any thoughts?

Gello 12-15-05 03:24 PM

Well this is a better solution than an OnUpdate, but it's probably not the best:

oldMyMod_PetFrame_Update = PetFrame_Update
PetFrame_Update = function() oldMyMod_PetFrame_Update() PetFrame:Hide() end

I'm not sure what's involved in the pet frame but the above method will hide it every time it shows the frame.


All times are GMT -6. The time now is 04:24 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI