NameplateAuras

NameplateAuras

4M Downloads

LF Sort Mode: small Icons > Big Icons and Duration less > long Time

SynaX1 opened this issue ยท 1 comments

commented

Hello,
i'm coming from flyplatebuffs and the sort mode is much easier to handle.
Can anyone give me a Lua Code for
that small Icons coming first and durations is for every Icon less first

commented

Hello,
If I understood you correctly it is

function(aura1, aura2) 
    local bySize1 = sort_size(aura1, aura2);
    local bySize2 = sort_size(aura2, aura1);
    if (bySize1 == false and bySize2 == false) then
        return sort_time(aura1, aura2);
    else
        return bySize1;
    end
end