/trunk/oUF
local status = UnitThreatSituation(unit) |
if(not self.OverrideUpdateThreat) then |
if(status > 0) then |
if(status and status > 0) then |
local r, g, b = GetThreatStatusColor(status) |
threat:SetVertexColor(r, g, b) |
threat:Show() |
assert(global, 'X-oUF needs to be defined in the parent add-on.') |
local oUF = _G[global] |
local ulduar = select(4, GetBuildInfo()) >= 30100 |
local OnEnter = function(self) |
if(not self:IsVisible()) then return end |
end |
local customFilter = function(icons, unit, icon, name, rank, texture, count, dtype, duration, timeLeft, caster) |
local isPlayer = caster |
local isPlayer |
if(ulduar) then |
isPlayer = caster == unit |
else |
caster = nil |
if(caster == 'player' or caster == 'vehicle') then |
isPlayer = true |
end |
if((icons.onlyShowPlayer and isPlayer) or (not icons.onlyShowPlayer and name)) then |
if(show) then |
if(not icons.disableCooldown and duration and duration > 0) then |
icon.cd:SetCooldown(timeLeft - duration, duration) |
icon.cd:Show() |
icon.duration = duration |
icon.timeLeft = timeLeft |
icon.cd:Show() |
else |
icon.cd:Hide() |
end |
## Interface: 30100 |
## Title: oUF |
## Author: Haste |
## Version: 1.3.9 |
## Version: 1.3.11 |
## X-eMail: troeks@gmail.com |
## X-oUF: oUF |
## Notes: Unit frame framework. Does nothing by itself. |