Permalink
Browse files

Updated TOC for Patch 3.2

Added own events for Castbar
Removed PostUpdate functions for Castbar

git-svn-id: svn://svn.wowinterface.com/oUF_BarFader-229/trunk@21 cbe42a47-3b53-4817-a5a9-47e79666164c
  • Loading branch information...
1 parent ecd60ac commit 5879d3bcbceea28af9b0adba7f44ec7879d67667 p3lim-52096 committed Aug 4, 2009
Showing with 6 additions and 6 deletions.
  1. +4 −4 oUF_BarFader/oUF_BarFader.lua
  2. +2 −2 oUF_BarFader/oUF_BarFader.toc
@@ -18,7 +18,7 @@ local function pending(self, unit)
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 @@ local function Update(self, event, unit)
end
end
-local function Enable(self, unit)
+local function enable(self, unit)
if(unit and self.BarFade) then
Update(self)
@@ -58,7 +58,7 @@ local function Enable(self, unit)
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 @@ local function Disable(self)
end
end
-oUF:AddElement('BarFader', Update, Enable, Disable)
+oUF:AddElement('BarFader', update, enable, disable)
@@ -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

0 comments on commit 5879d3b

Please sign in to comment.