diff --git a/IceCastBar.lua b/IceCastBar.lua index 4941ae1..c07e995 100644 --- a/IceCastBar.lua +++ b/IceCastBar.lua @@ -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 diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index dffb950..e20f0c8 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -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 diff --git a/modules/CustomCDBar.lua b/modules/CustomCDBar.lua index 275e150..44d339a 100644 --- a/modules/CustomCDBar.lua +++ b/modules/CustomCDBar.lua @@ -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 diff --git a/modules/PlayerHealth.lua b/modules/PlayerHealth.lua index 3450555..01de7c3 100644 --- a/modules/PlayerHealth.lua +++ b/modules/PlayerHealth.lua @@ -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) diff --git a/modules/TargetHealth.lua b/modules/TargetHealth.lua index 921a0c9..3eeb797 100644 --- a/modules/TargetHealth.lua +++ b/modules/TargetHealth.lua @@ -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)