WoWInterface SVN SoopUI

[/] [trunk/] [3.0.0rc1/] [SoopUI/] [Libs/] [oGlow/] [Filters/] [Quality.lua] - Rev 7

Compare with Previous | Blame | View Log

local quality = function(...)
        local quality = -1

        for i = 1, select("#", ...) do
                local itemLink = select(i, ...)

                if itemLink then
                        local _, _, itemQuality = GetItemInfo(itemLink)

                        if itemQuality then
                                quality = math.max(quality, itemQuality)
                        end
                end
        end

        if quality > 1 then
                return quality
        end
end

oGlow:RegisterFilter("Quality border", "Border", quality)

Compare with Previous | Blame