WoWInterface SVN oUF_Ruben

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 34 to Rev 35
    Reverse comparison

Rev 34 → Rev 35

trunk/oUF_Ruben/oUF_Ruben.lua
181,20 → 181,21
pet = true
}
function PostUpdateAuraIcon(self, icons, unit, button, index)
if (castby[button.owner] or unit=='player') and not(expirationTime == 0 and duration == 0) then
button.cd:Show()
else
button.cd:Hide()
end
 
local name, _, _, _, dtype, duration, expirationTime = UnitAura(unit, index, button.filter)
 
if button.debuff then
if (castby[button.owner] or unit=='player') and not(expirationTime == 0 and duration == 0) then
button.cd:Show()
else
button.cd:Hide()
end
button.icon:SetDesaturated(not (castby[button.owner] or unit == 'player' or unit=='pet' or unit=='vehicle'))
--button.icon:SetDesaturated(not (castby[button.owner] or unit == 'player' or unit=='pet' or unit=='vehicle'))
button.icon:SetPoint('TOPLEFT', 2, -2)
button.icon:SetPoint('BOTTOMRIGHT', -2, 2)
else
button.icon:SetAllPoints()
button.icon:SetDesaturated(false)
--button.icon:SetDesaturated(false)
end
end
end
251,10 → 252,18
53563, -- Beacon of Light
1454, -- Life Tap
1490, -- Curse of the elements
603, -- Curse of doom
}) do
whitelist[GetSpellInfo(v)] = true
end
 
local blacklist = {}
for k, v in pairs({
57669, --Replenishment
}) do
blacklist[GetSpellInfo(v)] = true
end
 
local myunits = {
player = true,
vehicle = true,
264,7 → 273,8
function AuraBarFilter(name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable)
if not myunits[unitCaster] then return end
if whitelist[name]
or not (duration == 0 and expirationTime == 0)
or not blacklist[name]
and not (duration == 0 and expirationTime == 0)
and duration <= 30 then
return true
end
893,7 → 903,7
--]]--
 
-- set up frame to help centering all frames.
f:SetPoint("BOTTOM",0, 175)
f:SetPoint("BOTTOM",0, 250)
f:SetSize(403, height)
--f:SetBackdrop(backdrop)
--f:SetBackdropColor(1,0,0,.40)