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:
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user