Quantcast

Added Swing to toc data

p3lim-52096 [02-09-09 - 14:24]
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
Filename
oUF_P3lim/oUF_P3lim.lua
oUF_P3lim/oUF_P3lim.toc
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