Quantcast

Added combopoint display to pet

p3lim-52096 [11-25-08 - 01:11]
Added combopoint display to pet

git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@45 8c7459ed-49dc-4bc8-85d7-b6381a8f5413
Filename
oUF_P3lim/oUF_P3lim.lua
diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua
index acc1e03..5be40c1 100644
--- a/oUF_P3lim/oUF_P3lim.lua
+++ b/oUF_P3lim/oUF_P3lim.lua
@@ -280,6 +280,16 @@ local function CreateStyle(self, unit)
 		self.Auras.initialAnchor = 'TOPRIGHT'
 		self.Auras['growth-x'] = 'LEFT'

+		self.CPoints = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlight')
+		self.CPoints:SetPoint('LEFT', self.Health, 2, 0)
+		self.CPoints:SetJustifyH('LEFT')
+		self.CPoints.unit = 'pet'
+
+		self.CPoints.Text = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontNormalSmall')
+		self.CPoints.Text:SetPoint('LEFT', self.CPoints, 'RIGHT', 1, 0)
+		self.CPoints.Text:SetJustifyH('LEFT')
+		self.CPoints.Text:SetText('|cff0090ffCP|r')
+
 		self:SetAttribute('initial-height', 27)
 		self:SetAttribute('initial-width', 130)
 	end