Thread: rAddons
View Single Post
Unread 07-22-12, 08:46 AM   #30
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Mod
Featured
Join Date: Sep 2008
Posts: 1,171
zork, since a few patches ago (on live as well) you no longer need to check the frame regions to know whether or not a frame is a name plate. Name plates have actual names now. It's easier (and probably faster) to do this instead:

Code:
 local IsNamePlateFrame = function(f)
	local name = f:GetName()
	if name and name:find("NamePlate") then
		return true
	end
	f.styled = true
	return false
end
Haleth is online now