Hi,
I have this interrupt tracker WA (https://wago.io/o9iPZ-DPY). It is a progress bar with 3 text strings and the custom option to choose between a static text color or text in class color. Anyway... It does'nt work, instead it throws a lua error that aura_ev.region.text is a nil value.
It's from the custom color code in the animation tab:
`function()
if aura_env.state then
local config = aura_env.config["display"]
local classColor = {aura_env.state.member.classColor:GetRGBA()}
local barColor, nameColor, timerColor
if config["colorBarUseClass"] then
barColor = classColor
else
barColor = config["colorBar"]
end
if config["colorNameUseClass"] then
nameColor = classColor
else
nameColor = config["colorName"]
end
if config["colorTimerUseClass"] then
timerColor = classColor
else
timerColor = config["colorTimer"]
end
aura_env.region:Color(unpack(barColor))
aura_env.region.text:SetTextColor(unpack(nameColor))
aura_env.region.timer:SetTextColor(unpack(timerColor))
end
end`
Can anyone help here?