#"Glow External Element" on nameplates, from conditions, getting "stuck" in an active state.

12 messages · Page 1 of 1 (latest)

vagrant cove
#

Im trying to add a glow to enemy nameplate units that have a "stealable" aura active.
Adding the glow to the nameplate initally (from a fresh reload) seems to work fine, but there is a "stickiness" to glows where they seem to remain active on the nameplate unit (regardless if the new unit meets the tigger conditions).

#

and the following is how im adding the glow

celest spruce
#

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

vagrant cove
#

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
indigo geyser
#

once again, why code?

vagrant cove
#

to get the values from DebuffTypeColor global table.