Commit 8e3db4bf authored by Blazeflack's avatar Blazeflack

Added support for party/raid frames in PowerBarTexture tweak.

This closes #87
parent efc0409c
......@@ -59,6 +59,21 @@ function BuildTable()
local unitframe = _G["ElvUF_"..frameNameUnit]
if unitframe and unitframe.Power then powerbars[unitframe.Power] = true end
end
for _, header in pairs(UF.headers) do
local name = header.groupName
local spacing = E.db.CNB.unitframes.auras.auraSpacing.units[name] and auraSpacing or E.Spacing
for i = 1, header:GetNumChildren() do
local group = select(i, header:GetChildren())
--group is Tank/Assist Frames, but for Party/Raid we need to go deeper
for j = 1, group:GetNumChildren() do
--Party/Raid unitbutton
local unitbutton = select(j, group:GetChildren())
if unitbutton.Power then powerbars[unitbutton.Power] = true end
end
end
end
end
BuildTable()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment