- fixed icons rotating with bars incorrectly when setting bar to be rotated 90 degrees

This commit is contained in:
Parnic
2010-10-15 00:30:27 +00:00
parent de880222b0
commit 86ee5ca6c1
5 changed files with 5 additions and 5 deletions

View File

@ -220,7 +220,7 @@ function IceCastBar.prototype:CreateFrame()
self.frame.bottomUpperText:SetWidth(self.settings.gap + 30)
if not self.barFrame.icon then
self.barFrame.icon = self.barFrame:CreateTexture(nil, "LOW")
self.barFrame.icon = self.masterFrame:CreateTexture(nil, "LOW")
-- default texture so that 'config mode' can work without activating the bar first
self.barFrame.icon:SetTexture("Interface\\Icons\\Spell_Frost_Frost")
-- this cuts off the border around the buff icon

View File

@ -108,7 +108,7 @@ function IceCustomBar.prototype:CreateBar()
IceCustomBar.super.prototype.CreateBar(self)
if not self.barFrame.icon then
self.barFrame.icon = self.barFrame:CreateTexture(nil, "LOW")
self.barFrame.icon = self.masterFrame:CreateTexture(nil, "LOW")
-- default texture so that 'config mode' can work without activating the bar first
self.barFrame.icon:SetTexture("Interface\\Icons\\Spell_Frost_Frost")
-- this cuts off the border around the buff icon

View File

@ -96,7 +96,7 @@ function IceCustomCDBar.prototype:CreateBar()
IceCustomCDBar.super.prototype.CreateBar(self)
if not self.barFrame.icon then
self.barFrame.icon = self.barFrame:CreateTexture(nil, "LOW")
self.barFrame.icon = self.masterFrame:CreateTexture(nil, "LOW")
-- default texture so that 'config mode' can work without activating the bar first
self.barFrame.icon:SetTexture("Interface\\Icons\\Spell_Frost_Frost")
-- this cuts off the border around the buff icon

View File

@ -1275,7 +1275,7 @@ end
function PlayerHealth.prototype:CreateTexCoord(texframe, icon, width, height, scale, left, right, top, bottom)
if not texframe then
texframe = self.frame:CreateTexture(nil, "BACKGROUND")
texframe = self.masterFrame:CreateTexture(nil, "BACKGROUND")
end
texframe:SetTexture(icon)
texframe:SetTexCoord(left, right, top, bottom)

View File

@ -840,7 +840,7 @@ end
function IceTargetHealth.prototype:CreateTexCoord(texframe, icon, width, height, scale, left, right, top, bottom)
if not texframe then
texframe = self.barFrame:CreateTexture(nil, "BACKGROUND")
texframe = self.masterFrame:CreateTexture(nil, "BACKGROUND")
end
texframe:SetTexture(icon)