View Single Post
12-02-09, 09:02 AM   #14
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
You know the spacing issue, that no-one wanted to report? Here's a fix for it. Below is also revised aura sorting without any extra cruft.
lua Code:
  1. local CustomAuraFilter = function(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster)
  2.        local isPlayer
  3.  
  4.        if(caster == 'player' or caster == 'vehicle') then
  5.                isPlayer = true
  6.        end
  7.  
  8.        if((icons.onlyShowPlayer and isPlayer) or (not icons.onlyShowPlayer and name)) then
  9.                icon.isPlayer = isPlayer
  10.                icon.owner = caster
  11.  
  12.                -- We set it to math.huge, because it lasts until cancelled.
  13.                if(timeLeft == 0) then
  14.                        icon.timeLeft = math.huge
  15.                else
  16.                        icon.timeLeft = timeLeft
  17.                end
  18.  
  19.                return true
  20.        end
  21. end
  22.  
  23. local sort = function(a, b)
  24.        return a.timeLeft > b.timeLeft
  25. end
  26.  
  27. local PreAuraSetPosition = function(self, auras, max)
  28.        table.sort(auras, sort)
  29. end

I'll try to push out 1.3.22 soonish, just need to level a DK and figure out how death runes work so I can fix the runebar bug people are complaining about.
__________________
「貴方は1人じゃないよ」
  Reply With Quote