From 8e6b0a6bfeefaa599a504faa8b375c9acf7fd335 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Mon, 1 Jun 2009 09:54:33 +0000 Subject: [PATCH] Added threat tag to player health string git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@81 8c7459ed-49dc-4bc8-85d7-b6381a8f5413 --- oUF_P3lim/oUF_P3lim.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) -- 1.7.9.5