Reply
Thread Tools Display Modes
Unread 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?
Mokaikai is offline   Reply With Quote
Unread 12-15-05, 03:24 PM   #2
Gello
A Scalebane Royal Guard
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 444
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.
Gello is online now   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » Default frame supression.

Thread Tools
Display Modes

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