From 80e135040a718ec80b5bdad8cb91fa7fbf049f61 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Mon, 9 Feb 2009 14:24:33 +0000 Subject: [PATCH] Added Swing to toc data Added prefix to pet power tag Fixed health string Removed BarFade support from target git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@58 8c7459ed-49dc-4bc8-85d7-b6381a8f5413 --- oUF_P3lim/oUF_P3lim.lua | 10 ++++++---- oUF_P3lim/oUF_P3lim.toc | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua index f9d5d9b..b518efb 100644 --- a/oUF_P3lim/oUF_P3lim.lua +++ b/oUF_P3lim/oUF_P3lim.lua @@ -152,8 +152,10 @@ local function PostUpdateHealth(self, event, unit, bar, min, max) if(min ~= max) then if(unit == 'player') then bar.Text:SetFormattedText('|cffff8080%d|r %d|cff0090ff%%|r', min-max, floor(min/max*100)) + elseif(unit == 'pet') then + bar.Text:SetFormattedText('%s |cff0090ff/|r %s', truncate(min), truncate(max)) else - bar.Text:SetFormattedText('%d |cff0090ff/|r %d', min, max) + bar.Text:SetFormattedText('%s |cff0090ff/|r %s', min, max) end else bar.Text:SetText(max) @@ -249,8 +251,6 @@ local function CreateStyle(self, unit) self:RegisterEvent('PARTY_MEMBERS_CHANGED', UpdateMasterLooter) self:RegisterEvent('PARTY_LEADER_CHANGED', UpdateMasterLooter) - self.BarFade = true - if(unit == 'player' or unit == 'pet') then if(IsAddOnLoaded('oUF_Experience')) then self.Experience = CreateFrame('StatusBar', nil, self) @@ -277,7 +277,7 @@ local function CreateStyle(self, unit) if(unit == 'player') then self:Tag(power, '[colorpp][curpp]|r') else - self:Tag(power, '[colorpp][curpp]|r [cpoints( CP)]') + self:Tag(power, '[colorpp][curpp]|r [(- )cpoints( CP)]') end else local info = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallLeft') @@ -474,6 +474,8 @@ local function CreateStyle(self, unit) self.Debuffs.spacing = 2 self.Debuffs.initialAnchor = 'TOPLEFT' self.Debuffs['growth-y'] = 'DOWN' + else + self.BarFade = true end self.disallowVehicleSwap = true diff --git a/oUF_P3lim/oUF_P3lim.toc b/oUF_P3lim/oUF_P3lim.toc index b401714..5640466 100644 --- a/oUF_P3lim/oUF_P3lim.toc +++ b/oUF_P3lim/oUF_P3lim.toc @@ -4,6 +4,6 @@ ## Title: oUF P3lim ## Notes: Just another oUF layout ## RequiredDeps: oUF -## OptionalDeps: oUF_AutoShot, oUF_BarFader, oUF_DebuffHighlight, oUF_Experience, oUF_Reputation +## OptionalDeps: oUF_BarFader, oUF_DebuffHighlight, oUF_Experience, oUF_Reputation, oUF_Swing oUF_P3lim.lua \ No newline at end of file -- 1.7.9.5