Quantcast
WoWInterface - View Single Post - How to add a thin border to a frame?
View Single Post
12-14-20, 02:22 AM   #7
Zax
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 96
Interesting trick! Thank you Kanegasi.

I tried this, but the result is sometime not very accurate:
Code:
-- params
local borderColor = {1, 1, 1}
local borderWidth = 1
--
if (not frame.SetBackdrop) then Mixin(frame, BackdropTemplateMixin) end
frame.backdrop = {
	edgeFile = "Interface\\Buttons\\WHITE8x8",
	tileEdge = false,
	edgeSize = borderWidth,
	insets = {left = borderWidth, right = borderWidth, top = borderWidth, bottom = borderWidth},
}
frame:SetBackdrop(frame.backdrop)
frame:SetBackdropBorderColor(borderColor[1], borderColor[2], borderColor[3], 1)
  Reply With Quote