end |
|
function ns.f:IsNameplate(frame) |
if frame:GetName() and not string.find(frame:GetName(), "^NamePlate") then |
return false |
if frame:GetName() and string.find(frame:GetName(), '^NamePlate%d') then |
local overlayRegion = select(2, frame:GetRegions()) |
return (overlayRegion and overlayRegion:GetObjectType() == 'Texture') |
end |
|
local overlayRegion = select(2, frame:GetRegions()) |
return (overlayRegion and |
overlayRegion:GetObjectType() == "Texture" and |
overlayRegion:GetTexture() == "Interface\\Tooltips\\Nameplate-Border") |
end |
|
function ns.f:InitFrame(frame) |