#"Glow External Element" on nameplates, from conditions, getting "stuck" in an active state.
12 messages · Page 1 of 1 (latest)
the condition for hiding can never run, because if the aura is hidden no conditions run
you want to use the "Hide Glows applied by this aura" on the Actions tab
oh shooot, i didnt even see that you could apply the glow there too
on show
Is there a way to programatically change the glow color with a custom condition?
I had another very similar aura to track dispellable debuff in "smart group" and apply an icon w/ glow to their unitframe.
I hacked together this solution in my old aura but, id like to not mess with aura_env.region for cloning auras.
local debuffColor
if debuffType then
-- capitalize WA's debuffType string to match blizzard's
local debuffType =
debuffType:sub(1, 1):upper() .. debuffType:sub(2)
if DebuffTypeColor then
debuffColor = DebuffTypeColor[debuffType]
end
end
-- Set glow color to match blizzard's debuff color scheme
for _, subElement
in pairs(aura_env.region.subRegions or {})
do
if subElement.type == "subglow" and debuffColor then
local alpha = subElement.glowColor[4] or 1
subElement:SetGlowColor(
debuffColor.r,
debuffColor.g,
debuffColor.b,
alpha)
end
end
once again, why code?
to get the values from DebuffTypeColor global table.