So then I can just do something like this?
Lua Code:
Aurora[1].CreateBG = function(frame)
local f = frame
if frame:GetObjectType() == "Texture" then f = frame:GetParent() end
frame:CreateBorder(12,1,1,1)
local bg = f:CreateTexture(nil, "BACKGROUND")
bg:SetPoint("TOPLEFT", frame, -1, 1)
bg:SetPoint("BOTTOMRIGHT", frame, 1, -1)
bg:SetTexture("Interface\\ChatFrame\\ChatFrameBackground")
bg:SetVertexColor(0, 0, 0)
return bg
end
Sorry not at the comp right now so can't really test via trial and error