Nameplate Overhaul (#38)

* ElvUI/NamePlates: initial nameplate conversions

* More nameplate work

* Modules/Cooldowns: various CD fixes, nameplates cant show 'swipe' texture

* ElvUI/NamePlates: final nameplate polish

* Modules/Misc: add space before interrupted announcement
This commit is contained in:
Andrew
2023-05-22 19:18:59 -07:00
committed by GitHub
parent 5d51f92ed3
commit 8edf2d7f8a
75 changed files with 8870 additions and 8088 deletions
@@ -173,6 +173,33 @@ function UF.SortAuraBarName(a, b)
return a.name > b.name
end
function UF:ConvertFilters(auras, priority)
if not priority or priority == '' then return end
local list = auras.filterList or {}
if next(list) then wipe(list) end
local special, filters = G.unitframe.specialFilters, E.global.unitframe.aurafilters
for _, name in next, { strsplit(',', priority) } do
local friend, enemy = strmatch(name, '^Friendly:([^,]*)'), strmatch(name, '^Enemy:([^,]*)')
local real = friend or enemy or name
local custom = filters[real]
if special[real] or custom then
tinsert(list, {
name = real,
custom = custom,
status = (friend and 1) or (enemy and 2)
})
end
end
if next(list) then
return list
end
end
function UF:CheckFilter(name, caster, spellID, isFriend, isPlayer, isUnit, allowDuration, noDuration, canDispell, ...)
for i = 1, select("#", ...) do
local filterName = select(i, ...)