mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed icons rotating with bars incorrectly when setting bar to be rotated 90 degrees
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user