Reply
Thread Tools Display Modes
Unread 08-13-11, 05:37 PM   #41
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,546
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
Nibelheim is offline   Reply With Quote
Reply

Go BackWoWInterface » 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