View Single Post
12-14-20, 02:22 AM   #7
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
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