mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fix for removal of SetTexCoordModifiesRect in 3.3.3.
This commit is contained in:
@ -162,7 +162,7 @@ end
|
||||
-- Creates the low amount warning frame
|
||||
function IceUnitBar.prototype:CreateFlashFrame()
|
||||
if not (self.flashFrame) then
|
||||
self.flashFrame = CreateFrame("StatusBar", nil, self.frame)
|
||||
self.flashFrame = CreateFrame("Frame", nil, self.frame)
|
||||
end
|
||||
|
||||
self.flashFrame:SetFrameStrata("BACKGROUND")
|
||||
@ -178,9 +178,6 @@ function IceUnitBar.prototype:CreateFlashFrame()
|
||||
self.flashFrame.flash:SetBlendMode("ADD")
|
||||
self.flashFrame.flash:SetAllPoints(self.flashFrame)
|
||||
|
||||
self.flashFrame:SetStatusBarTexture(self.flashFrame.flash)
|
||||
|
||||
|
||||
self:SetScale(self.flashFrame.flash, 1)
|
||||
self.flashFrame:SetAlpha(0)
|
||||
|
||||
@ -277,8 +274,8 @@ function IceUnitBar.prototype:UpdateBar(scale, color, alpha)
|
||||
-- skip if flashFrame hasn't been created yet
|
||||
return
|
||||
end
|
||||
|
||||
self.flashFrame:SetStatusBarColor(self:GetColor(color))
|
||||
|
||||
self.flashFrame.flash:SetVertexColor(self:GetColor(color))
|
||||
|
||||
if (self.moduleSettings.lowThreshold > 0 and
|
||||
self.moduleSettings.lowThresholdFlash and
|
||||
|
Reference in New Issue
Block a user