Hello This is a lua code that changes color for timer bars in WeakAuras2. It tells the code to grab the color from the color boxes in the display and animation main window.
I'm trying to figure out how to tell this code to grab the color in one of the color boxes for either the Top or Bottom text instead then the animation color box.
(I'm going for the Bottom Text Window )
function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
-- Set the debuff and threshold time here:
local debuff_name, warning_time = "Power Word: Shield", 5
local _,_,_,_,_,_,expires, etc = UnitAura("PLAYER", debuff_name,
if expires ~= nil then
local time_left = expires - GetTime()
if time_left < warning_time then
return r2, g2, b2, a2
return r1,g1,b1, a1
Does anyone know what needs to be changed for this to work?