From 2c20781f394e2f774df940a797847c3d0984ae01 Mon Sep 17 00:00:00 2001 From: p3lim Date: Wed, 5 Jan 2011 13:27:06 +0100 Subject: [PATCH] Remove threat display --- oUF_P3lim.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 2e52fe8..f99bef4 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -21,14 +21,6 @@ local function ShortenValue(value) end end -oUF.TagEvents['p3lim:threat'] = 'UNIT_THREAT_LIST_UPDATE' -oUF.Tags['p3lim:threat'] = function(unit) - local tanking, status, percent = UnitDetailedThreatSituation('player', 'target') - if(percent and percent > 0) then - return ('%s%d%%|r'):format(Hex(GetThreatStatusColor(status)), percent) - end -end - oUF.Tags['p3lim:health'] = function(unit) local min, max = UnitHealth(unit), UnitHealthMax(unit) local status = not UnitIsConnected(unit) and 'Offline' or UnitIsGhost(unit) and 'Ghost' or UnitIsDead(unit) and 'Dead' @@ -119,11 +111,6 @@ local UnitSpecific = { assistant:SetSize(16, 16) self.Assistant = assistant - local info = self.Health:CreateFontString(nil, 'OVERLAY') - info:SetPoint('CENTER') - info:SetFont(FONT, 8, 'OUTLINEMONOCHROME') - self:Tag(info, '[p3lim:threat]') - self:SetWidth(230) end, target = function(self) -- 1.7.9.5