Thread Tools Display Modes
12-15-05, 01:15 PM   #1
Mokaikai
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 5
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?
  Reply With Quote
12-15-05, 03:24 PM   #2
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
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.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Default frame supression.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off