View Single Post
12-15-13, 04:26 PM   #3
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
So then I can just do something like this?

Lua Code:
  1. Aurora[1].CreateBG = function(frame)
  2.     local f = frame
  3.     if frame:GetObjectType() == "Texture" then f = frame:GetParent() end
  4.     frame:CreateBorder(12,1,1,1)
  5.  
  6.     local bg = f:CreateTexture(nil, "BACKGROUND")
  7.     bg:SetPoint("TOPLEFT", frame, -1, 1)
  8.     bg:SetPoint("BOTTOMRIGHT", frame, 1, -1)
  9.     bg:SetTexture("Interface\\ChatFrame\\ChatFrameBackground")
  10.     bg:SetVertexColor(0, 0, 0)
  11.  
  12.     return bg
  13. end

Sorry not at the comp right now so can't really test via trial and error
__________________
Tweets YouTube Website
  Reply With Quote