I'm trying to add a border to my Chatframe, using this snippet of code:
Code:
local chatborder = CreateFrame("Frame",nil,UIParent)
function chatborder:onEvent()
local border=CreateFrame("Frame",nil,UIParent)
border:SetAllPoints(ChatFrame1)
border:SetParent(ChatFrame1)
border:SetBackdrop({
edgeFile = "Interface\\Tooltips\\bagnon", --insert your file path texture or rename texture
edgeSize = 16,
tile = true, tileSize = 16})
border:SetFrameStrata("BACKGROUND")
local Chatframe = ChatFrame1
if ChatFrame1 then border:SetParent(ChatFrame1) else border:Hide() end
end
function chatborder:new()
self:SetScript("OnEvent", self.onEvent)
self:RegisterEvent("PLAYER_LOGIN")
end
chatborder:new()
Everything works great so far, but the border insets are looking weird and overlapping the chattext, so i would like to move the out of the middle a bit by maybe 4 or 5 pixels. Is it even possible to have something like edgefile insets?