View Single Post
06-21-21, 11:11 AM   #6
rulezyx
A Flamescale Wyrmkin
 
rulezyx's Avatar
Join Date: Jan 2020
Posts: 106
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

Last edited by rulezyx : 06-21-21 at 11:16 AM.
  Reply With Quote