From 741123bb6078321ae77ad709c215d006da75f5c0 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Sun, 23 Nov 2008 18:30:52 +0000 Subject: [PATCH] Added fix for vehicle/pet Added BarFader support to focus git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@44 8c7459ed-49dc-4bc8-85d7-b6381a8f5413 --- oUF_P3lim/oUF_P3lim.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua index 6828aef..acc1e03 100644 --- a/oUF_P3lim/oUF_P3lim.lua +++ b/oUF_P3lim/oUF_P3lim.lua @@ -301,8 +301,9 @@ local function CreateStyle(self, unit) self.Debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -2, 1) self.Debuffs.initialAnchor = 'TOPRIGHT' self.Debuffs['growth-x'] = 'LEFT' --- else -- 1.3 --- self.Debuffs.onlyShowPlayer = true + else + self.BarFade = true + self.Debuffs.onlyShowPlayer = true end self:SetAttribute('initial-height', 21) @@ -373,6 +374,9 @@ local function CreateStyle(self, unit) return self end +oUF:RegisterSubTypeMapping('UNIT_PET') +oUF:RegisterSubTypeMapping('UNIT_ENTERED_VEHICLE') + oUF:RegisterStyle('P3lim', CreateStyle) oUF:SetActiveStyle('P3lim') -- 1.7.9.5