WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Add Text/Number Timer above the clockwise Circle (https://www.wowinterface.com/forums/showthread.php?t=58601)

stclv 02-22-21 04:27 PM

Add Text/Number Timer above the clockwise Circle
 
function CompactUnitFrame_UtilSetBuff(buffFrame, index, ...)
local name, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, _, spellId, canApplyAura = ...;
buffFrame.icon:SetTexture(icon);
if ( count > 1 ) then
local countText = count;
if ( count >= 100 ) then
countText = BUFF_STACKS_OVERFLOW;
end
buffFrame.count:Show();
buffFrame.count:SetText(countText);
else
buffFrame.count:Hide();
end
buffFrame:SetID(index);
local enabled = expirationTime and expirationTime ~= 0;
if enabled then
local startTime = expirationTime - duration;
CooldownFrame_Set(buffFrame.cooldown, startTime, duration, true);
else
CooldownFrame_Clear(buffFrame.cooldown);
end
buffFrame:Show();
end



How can add the time-left number of the time remaining of the buff instead of clock-circle only?


All times are GMT -6. The time now is 03:34 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI