- local pos = watchedAuras[name] or watchedAuras[id] or watchedAuras[debuff];
- if pos then
- local ind = f[frameName][pos];
- local config = OmaRF.db.profile.indicators[pos];
- if not config.mine or UnitIsPlayer(caster) then
- if config.showIcon then
- -- show icon
- if config.useDefaultIcon then
- ind.icon:SetTexture(DEFAULT_ICON);
- else
- ind.icon:SetTexture(icon);
- end
- end
- if config.showText then
- -- show text
- local text;
- local remaining = expires - current;
- if remaining > 60 then
- text = string.format("%dm", ceil(remaining/60));
- else
- text = string.format("%d", floor(remaining+0.5));
- end
- if count > 1 and config.stack then
- if text then
- text = count.."-"..text;
- else
- text = count;
- end
- end
-
- ind.text:SetText(text);
- end
+ local pos = watchedAuras[id] or watchedAuras[name];
+ if pos and UnitIsPlayer(caster) then
+ needUpdate = remaining(frame.inds[pos].text, expires, current);
+ frame.inds[pos].expires = expires;
+ frame.inds[pos]:Show();
+ frame.inds[pos].text:Show();
+ showInds = true;
+ end
+ if (majorAuras[id] or majorAuras[name]) and majorPos <= 3 then
+ needUpdate = remaining(frame.major[majorPos].text, expires, current);
+ frame.major[majorPos].expires = expires;
+ frame.major[majorPos]:SetTexture(icon);
+ frame.major[majorPos]:Show();
+ frame.major[majorPos].text:Show();
+ if count > 1 then
+ frame.major[majorPos].stack:SetText(count);
+ frame.major[majorPos].stack:Show();