WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Stuf + Threat (https://www.wowinterface.com/forums/showthread.php?t=40448)

Nibelheim 08-13-11 05:37 PM

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



All times are GMT -6. The time now is 03:03 PM.

vBulletin © 2018, Jelsoft Enterprises Ltd
© 2004 - 2017 MMOUI