Added fix for vehicle/pet
p3lim-52096 [11-23-08 - 18:30]
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
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')