Wall of text incoming! Here are the changes that you are gonna have to make
Code:
if(UnitName('target') and frame:GetAlpha() == 1) then
frame.bg:SetTexture(0, 0, 0)
Code:
local function SkinObjects(frame)
local hp, cb = frame:GetChildren()
local threat, hpborder, cbshield, cbborder, cbicon, overlay, oldname, level, bossicon, raidicon, elite = frame:GetRegions()
local bg = CreateFrame("Frame", nil, hp)
bg:SetBackdrop({
bgFile = 'Interface\\ChatFrame\\ChatFrameBackground',
edgeFile = 'Interface\\ChatFrame\\ChatFrameBackground',
edgeSize = 1,
})
bg:SetBackdropColor(0, 0, 0, .4)
bg:SetBackdropBorderColor(0, 0, 0)
bg:SetFrameStrata("BACKGROUND")
bg:SetPoint("TOPLEFT", hp, -1, 1)
bg:SetPoint("BOTTOMRIGHT", hp, 1, -1)
local offset = UIParent:GetScale() / hp:GetEffectiveScale()
local hpbg = hp:CreateTexture(nil, 'OVERLAY')
hpbg:SetPoint('BOTTOMRIGHT', offset, -offset)
hpbg:SetPoint('TOPLEFT', -offset, offset)
hpbg:SetTexture(0, 0, 0)
hpbg:SetAlpha(0)
frame.bg = hpbg
local hpbg2 = hp:CreateTexture(nil, 'OVERLAY')
hpbg2:SetAllPoints(hp)
hpbg2:SetTexture(0, 0, 0)
hpbg2:SetAlpha(0)
Code:
local cbbg2 = cb:CreateTexture(nil, 'OVERLAY')
cbbg2:SetAllPoints(cb)
cbbg2:SetTexture(0, 0, 0)
cbbg2:SetAlpha(0)
That SHOULD be all. Keep in mind that I use an older version, so there might be one or two things that have changed. I looked through the newer version, though, and it looks like it should work just fine. Lemme know if it works or not!