WoWInterface SVN oUF_Ruben

Compare Revisions

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

Rev 35 → Rev 34

trunk/oUF_Ruben/oUF_Ruben.lua
181,21 → 181,20
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
--button.icon:SetDesaturated(not (castby[button.owner] or unit == 'player' or unit=='pet' or unit=='vehicle'))
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: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
252,18 → 251,10
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,
273,8 → 264,7
function AuraBarFilter(name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable)
if not myunits[unitCaster] then return end
if whitelist[name]
or not blacklist[name]
and not (duration == 0 and expirationTime == 0)
or not (duration == 0 and expirationTime == 0)
and duration <= 30 then
return true
end
903,7 → 893,7
--]]--
 
-- set up frame to help centering all frames.
f:SetPoint("BOTTOM",0, 250)
f:SetPoint("BOTTOM",0, 175)
f:SetSize(403, height)
--f:SetBackdrop(backdrop)
--f:SetBackdropColor(1,0,0,.40)