A simple threat bar that can be added to an oUF layout. Instructions are in the lua.
Though my programming sucks, I think I have most of the bugs worked out. I'm happy to take suggestions or smacks upside the head, though.
Example:
Code:
if( unit == 'player') then
self.ThreatBar = CreateFrame("StatusBar", self:GetName()..'_ThreatBar', UIParent)
self.ThreatBar:SetPoint('CENTER', UIParent, 'CENTER', 0, 0)
self.ThreatBar:SetHeight(10)
self.ThreatBar:SetWidth(150)
self.ThreatBar:SetStatusBarTexture(texture)
self.ThreatBar:SetBackdrop(backdrop)
self.ThreatBar:SetBackdropColor(0, 0, 0, 0)
self.ThreatBar.Text = self.ThreatBar:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmall')
self.ThreatBar.Text:SetPoint('CENTER', self.ThreatBar)
self.ThreatBar.bg = self.ThreatBar:CreateTexture(nil, 'BORDER')
self.ThreatBar.bg:SetAllPoints(self.ThreatBar)
self.ThreatBar.bg:SetTexture(0,0,0)
self.ThreatBar.useRawThreat = false
end