Thread Tools Display Modes
08-13-11, 05:37 PM   #41
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Or for threat colored text.

Code:
function(unit)
    local _, _, threatpct, _, threatvalue = UnitDetailedThreatSituation(unit, "target")
    local color = status and {GetThreatStatusColor(status)} or {GetThreatStatusColor(0)}
    if threatvalue then
        return "|cff%02x%02x%02x%d|r", color[1], color[2], color[3], floor(threatpct)
    else
        return ""
    end
end
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Stuf + Threat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off