From 5879d3bcbceea28af9b0adba7f44ec7879d67667 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Tue, 4 Aug 2009 21:10:44 +0000 Subject: [PATCH] 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 --- oUF_BarFader/oUF_BarFader.lua | 8 ++++---- oUF_BarFader/oUF_BarFader.toc | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/oUF_BarFader/oUF_BarFader.lua b/oUF_BarFader/oUF_BarFader.lua index 965fd82..468c670 100644 --- a/oUF_BarFader/oUF_BarFader.lua +++ b/oUF_BarFader/oUF_BarFader.lua @@ -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) \ No newline at end of file +oUF:AddElement('BarFader', update, enable, disable) \ No newline at end of file diff --git a/oUF_BarFader/oUF_BarFader.toc b/oUF_BarFader/oUF_BarFader.toc index f8814cb..e15b686 100644 --- a/oUF_BarFader/oUF_BarFader.toc +++ b/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 -- 1.7.9.5