From fa0fc040a5c3e8222fbf92218e64ff3430f0b1b2 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 27 Feb 2012 02:48:09 +0100 Subject: [PATCH] Add debuffs on raid/party frames --- oUF_P3lim.lua | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 70f499e..cb53b30 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -159,6 +159,9 @@ local UnitSpecific = { self:HookScript('OnEnter', function() RoleIcon:SetAlpha(1) end) self:HookScript('OnLeave', function() RoleIcon:SetAlpha(0) end) + self.Debuffs.size = 17 + self.Debuffs:SetSize(74, 17) + self.Health:SetAllPoints() self:Tag(self.HealthValue, '[p3lim:status][p3lim:percent]') end @@ -192,30 +195,28 @@ local function Shared(self, unit) HealthValue.frequentUpdates = 1/4 self.HealthValue = HealthValue - if(unit ~= 'party' and unit ~= 'raid') then - local Debuffs = CreateFrame('Frame', nil, self) - Debuffs.spacing = 4 - Debuffs.initialAnchor = 'TOPLEFT' - Debuffs.PostCreateIcon = PostCreateAura - self.Debuffs = Debuffs - - if(unit == 'focus') then - Debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 4, 0) - Debuffs.onlyShowPlayer = true - elseif(unit ~= 'target') then - Debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0) - Debuffs.initialAnchor = 'TOPRIGHT' - Debuffs['growth-x'] = 'LEFT' - end - - if(unit == 'focus' or unit == 'targettarget') then - Debuffs.num = 3 - Debuffs.size = 19 - Debuffs:SetSize(230, 19) - - Health:SetAllPoints() - self:SetSize(161, 19) - end + local Debuffs = CreateFrame('Frame', nil, self) + Debuffs.spacing = 4 + Debuffs.initialAnchor = 'TOPLEFT' + Debuffs.PostCreateIcon = PostCreateAura + self.Debuffs = Debuffs + + if(unit == 'focus') then + Debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 4, 0) + Debuffs.onlyShowPlayer = true + elseif(unit ~= 'target') then + Debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0) + Debuffs.initialAnchor = 'TOPRIGHT' + Debuffs['growth-x'] = 'LEFT' + end + + if(unit == 'focus' or unit == 'targettarget') then + Debuffs.num = 3 + Debuffs.size = 19 + Debuffs:SetSize(230, 19) + + Health:SetAllPoints() + self:SetSize(161, 19) end if(unit == 'player' or unit == 'target') then -- 1.7.9.5