View Single Post
02-22-21, 04:27 PM   #1
stclv
A Defias Bandit
Join Date: Feb 2021
Posts: 2
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?
  Reply With Quote