WoWInterface SVN oUF_BarFader

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 20 to Rev 21
    Reverse comparison

Rev 20 → Rev 21

oUF_BarFader/oUF_BarFader.toc
1,6 → 1,6
## Interface: 30100
## Interface: 30200
## Author: p3lim
## Version: 30100.wowi:revision
## Version: 30200.wowi:revision
## Title: oUF BarFader
## Notes: Condition fading plug-in for oUF
## RequiredDeps: oUF
oUF_BarFader/oUF_BarFader.lua
18,7 → 18,7
if((str ~= 'RAGE' and str ~= 'RUNIC_POWER') and UnitMana(unit) < UnitManaMax(unit)) then return true end
end
 
local function Update(self, event, unit)
local function update(self, event, unit)
if(unit and unit ~= self.unit) then return end
 
if(not pending(self, self.unit)) then
28,7 → 28,7
end
end
 
local function Enable(self, unit)
local function enable(self, unit)
if(unit and self.BarFade) then
Update(self)
 
58,7 → 58,7
end
end
 
local function Disable(self)
local function disable(self)
if(self.BarFade) then
self:UnregisterEvent('UNIT_COMBAT', Update)
self:UnregisterEvent('UNIT_HAPPINESS', Update)
84,4 → 84,4
end
end
 
oUF:AddElement('BarFader', Update, Enable, Disable)
\ No newline at end of file +oUF:AddElement('BarFader', update, enable, disable) \ No newline at end of file