Code:
function AuraButton_UpdateDuration(auraButton, timeLeft)
local duration = auraButton.duration;
if ( SHOW_BUFF_DURATIONS == "1" and timeLeft ) then
duration:SetFormattedText(SecondsToTimeAbbrev(timeLeft));
if (timeLeft < 1.0 ) then
duration:SetFormattedText("%.1f", timeLeft)
end
if ( timeLeft < BUFF_DURATION_WARNING_TIME ) then
duration:SetVertexColor(1,1,1);
else
duration:SetVertexColor(1,1,1);
end
duration:Show();
else
duration:Hide();
end
end
seems to work fine.
Thank you