Quantcast
WoWInterface - View Single Post - Reskin Frame problem
View Single Post
08-18-14, 04:42 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Rather than using an overlay to create your border, use a background. This way you can make sure it's always outside of the object you're bordering, and always exactly 1px wide:

Code:
local bg = object:CreateTexture(nil, "BACKGROUND")
bg:SetPoint("TOPLEFT", -1, 1)
bg:SetPoint("BOTTOMRIGHT", 1, -1)
bg:SetTexture(0, 0, 0)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Donít message me about addon bugs or programming questions.
  Reply With Quote