Updated: 05-28-07 06:41 AM
File Info
Updated:05-28-07 06:41 AM

Where's My Cow?

Version: 1
by: Wobin [More]

Where's My Cow

Have you ever looked at your addon's frames and wondered just what is hidden behind it? Well wonder no more, for in the spirit of Iriel's Devtools, this addon will allow you to get a tooltip of the frame's common attributes and secureframe details.

When WMC is active, pressing shift will pop up a tooltip of the stack of frames under your mouse cursor. Holding shift (to keep it up) and pressing tab will cycle through the framestack and hitting shift-enter will drill down to that frame, showing generic and possibly specific information about it.

Note how the BT3Bar1 frame in the FrameStack Listing shot has > < around it. This indicates that that frame is selected, and hitting shift-enter will drill down into that frame.

WMC works in two different ways.

1. /wmc all
This mode allows you to see all the frames currently visible on screen. This will not allow any custom information to be shown, nor any hidden frames.

2. /wmc <AddonName>
This mode is the more specific mode. You need to incorporate certain code within your addon itself, to register whatever frames you wish to include. This is a less intensive mode, as only the frames you specify will be marked for showing the tooltip, instead of iterating through every frame in existance every refresh as /wmc all does.

First of all you:
1. Create a local reference for your Cow instance

 local Cow = WheresMyCow:RegisterAddon("Splut")
2. Then for every frame you wish to be able to inspect, register it and add in any custom strings/functions you want. Be sure that the second argument is a table of functions if you want to use them.
 Cow:RegisterFrame(Splutt.Header, {What=function() return "This is the header" end, Where=function() return "Behind you Jim!"end})

Optional Files (0)

Post A Reply Comment Options
Unread 09-29-07, 02:39 PM  
A Chromatic Dragonspawn
Jzar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 158
File comments: 281
Uploads: 5
Kudos to you!

lol WTH does Terry Pratchet have to do with anything? Anyways, I just want to say thanks so much for this mod. I read about it when I was browsing the dev utils here, and keeping WMC in mind is part of what prompted and enabled me to conceive of and write OnScreen. (http://www.wowinterface.com/download...-OnScreen.html)

WMC makes adding new modules to my addon a piece of cake! So thanks, and keep the good work up!
Report comment to moderator  
Reply With Quote
Unread 05-28-07, 08:06 AM  
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Terry Pratchett FTW!
Report comment to moderator  
Reply With Quote
Post A Reply

Category Jump: