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 09:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI