Thread: rAddons
View Single Post
07-22-12, 08:46 AM   #30
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
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