Unit bars now have an option to pulse on set threshold

This commit is contained in:
iceroth
2006-10-03 20:02:00 +00:00
parent 86d03baa22
commit 203a0b7232
3 changed files with 119 additions and 6 deletions

View File

@ -275,13 +275,13 @@ function IceBarElement.prototype:CreateBar()
self.barFrame = CreateFrame("StatusBar", nil, self.frame)
end
self.barFrame:SetFrameStrata("BACKGROUND")
self.barFrame:SetFrameStrata("HIGH")
self.barFrame:SetWidth(self.settings.barWidth)
self.barFrame:SetHeight(self.settings.barHeight)
if not (self.barFrame.bar) then
self.barFrame.bar = self.frame:CreateTexture(nil, "BACKGROUND")
self.barFrame.bar = self.frame:CreateTexture(nil, "MEDIUM")
end
self.barFrame.bar:SetTexture(IceElement.TexturePath .. self.settings.barTexture)