Added threat tag to player health string
p3lim-52096 [06-01-09 - 09:54]
Added threat tag to player health string
git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@81 8c7459ed-49dc-4bc8-85d7-b6381a8f5413
diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua
index a515d59..e2876e0 100644
--- a/oUF_P3lim/oUF_P3lim.lua
+++ b/oUF_P3lim/oUF_P3lim.lua
@@ -241,7 +241,7 @@ local function styleFunction(self, unit)
local hpvalue = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
hpvalue:SetPoint('RIGHT', self.Health, -2, -1)
hpvalue.frequentUpdates = 0.1
- self:Tag(hpvalue, unit == 'player' and '|cffff0000[custompvp]|r [customhp]' or '[customhp]')
+ self:Tag(hpvalue, unit == 'player' and '[threatcolor][customthreat(%)]|r|cffff0000[custompvp]|r [customhp]' or '[customhp]')
self.RaidIcon = self.Health:CreateTexture(nil, 'OVERLAY')
self.RaidIcon:SetPoint('TOP', self, 0, 8)
@@ -377,10 +377,6 @@ local function styleFunction(self, unit)
self.CPoints.unit = PlayerFrame.unit
self:RegisterEvent('UNIT_COMBO_POINTS', updateCPoints)
- local threat = self:CreateFontString(nil, 'OVERLAY', 'GameFontNormalSmall')
- threat:SetPoint('TOPLEFT', self, 'BOTTOMRIGHT')
- self:Tag(threat, '[threatcolor][customthreat(%)]')
-
self.Debuffs = CreateFrame('Frame', nil, self)
self.Debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', -1, -2)
self.Debuffs:SetHeight(22 * 0.97)