Code:
local ActionBars = { "Action", "PetAction", "MultiBarBottomLeft", "MultiBarBottomRight", "MultiBarRight", "MultiBarLeft", "Bonus", "BonusAction", "Shapeshift",}
local function noop() end
for _, barName in pairs(ActionBars) do
for i=1,12 do
local btn = barName .. "Button" .. i
local button = _G[btn]
if button then
local BlizBorder = _G[btn .. "Border"]
local icon = _G[btn .. "Icon"]
local uglyTexture = _G[btn .. "NormalTexture"]
if icon then
icon:SetTexCoord(0.07,0.9,0.07,0.90) -- remove borders
button.border = CreateFrame("Frame", nil, button)
button.border:SetPoint("CENTER", button)
button.border:SetBackdrop({
bgFile=nil,
edgeFile="Interface\\ChatFrame\\ChatFrameBackground",
tile=true,
tileSize=5,
edgeSize= 3, -- border thickness
})
button.border:SetBackdropColor(0,0,0)
button.border:SetBackdropBorderColor(0,0,0)
button.border:SetAlpha(1)
button.border:SetAllPoints(button)
button.SetNormalTexture = noop
BlizBorder:Hide()
end
if uglyTexture then
uglyTexture:SetTexture("")
uglyTexture:Hide()
end
end
end
end