- fixed layer ordering such that icons draw in front of bars again

This commit is contained in:
Parnic
2010-12-05 21:22:12 +00:00
parent 6c1549d6c1
commit cc8b66dc0c
2 changed files with 2 additions and 2 deletions

View File

@ -230,12 +230,11 @@ function IceCastBar.prototype:CreateFrame()
self.frame.bottomUpperText:SetWidth(self.settings.gap + 30)
if not self.barFrame.icon then
self.barFrame.icon = self.masterFrame:CreateTexture(nil, "LOW")
self.barFrame.icon = self.masterFrame:CreateTexture(nil, "OVERLAY")
-- 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
self.barFrame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
self.barFrame.icon:SetDrawLayer("OVERLAY")
end
self:PositionIcons()
end

View File

@ -70,6 +70,7 @@ function IceElement.prototype:Create(parent)
self.parent = parent
if not self.masterFrame then
self.masterFrame = CreateFrame("Frame", nil, self.parent)
self.masterFrame:SetFrameStrata("MEDIUM")
end
self:CreateFrame()
self:Show(false)