From 09e1832fbe03b92d406f465d8d03e7dbe38aadce Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 17 Sep 2022 19:50:50 -0500 Subject: [PATCH] Fix more invalid texture layers --- modules/CustomBar.lua | 2 +- modules/CustomCDBar.lua | 2 +- modules/CustomCounterBar.lua | 2 +- modules/Runes.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index f6b8217..a9336fc 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -171,7 +171,7 @@ function IceCustomBar.prototype:CreateBar() IceCustomBar.super.prototype.CreateBar(self) if not self.barFrame.icon then - self.barFrame.icon = self.masterFrame:CreateTexture(nil, "LOW") + self.barFrame.icon = self.masterFrame:CreateTexture(nil, "BACKGROUND") -- this cuts off the border around the buff icon self.barFrame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9) self.barFrame.icon:SetDrawLayer("OVERLAY") diff --git a/modules/CustomCDBar.lua b/modules/CustomCDBar.lua index 167ecb0..3766852 100644 --- a/modules/CustomCDBar.lua +++ b/modules/CustomCDBar.lua @@ -131,7 +131,7 @@ function IceCustomCDBar.prototype:CreateBar() IceCustomCDBar.super.prototype.CreateBar(self) if not self.barFrame.icon then - self.barFrame.icon = self.masterFrame:CreateTexture(nil, "LOW") + self.barFrame.icon = self.masterFrame:CreateTexture(nil, "BACKGROUND") -- this cuts off the border around the buff icon self.barFrame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9) self.barFrame.icon:SetDrawLayer("OVERLAY") diff --git a/modules/CustomCounterBar.lua b/modules/CustomCounterBar.lua index 6f53b31..d1f2076 100644 --- a/modules/CustomCounterBar.lua +++ b/modules/CustomCounterBar.lua @@ -277,7 +277,7 @@ function IceCustomCounterBar.prototype:CreateFrame() IceCustomCounterBar.super.prototype.CreateFrame(self) if not self.barFrame.icon then - self.barFrame.icon = self.masterFrame:CreateTexture(nil, "LOW") + self.barFrame.icon = self.masterFrame:CreateTexture(nil, "BACKGROUND") self.barFrame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9) self.barFrame.icon:SetDrawLayer("OVERLAY") self.barFrame.icon:Hide() diff --git a/modules/Runes.lua b/modules/Runes.lua index 6db0dfd..1cd0e37 100644 --- a/modules/Runes.lua +++ b/modules/Runes.lua @@ -503,7 +503,7 @@ function Runes.prototype:CreateRune(i, type, name) -- create runes if (not self.frame.graphical[i]) then self.frame.graphical[i] = CreateFrame("Frame", nil, self.frame) - self.frame.graphical[i].rune = self.frame.graphical[i]:CreateTexture(nil, "LOW") + self.frame.graphical[i].rune = self.frame.graphical[i]:CreateTexture(nil, "BACKGROUND") self.frame.graphical[i].rune:SetAllPoints(self.frame.graphical[i]) self.frame.graphical[i].cd = CreateFrame("Cooldown", nil, self.frame.graphical[i], "CooldownFrameTemplate") self.frame.graphical[i].shine = self.frame.graphical[i]:CreateTexture(nil, "OVERLAY")