mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed layer ordering such that icons draw in front of bars again
This commit is contained in:
@ -230,12 +230,11 @@ function IceCastBar.prototype:CreateFrame()
|
|||||||
self.frame.bottomUpperText:SetWidth(self.settings.gap + 30)
|
self.frame.bottomUpperText:SetWidth(self.settings.gap + 30)
|
||||||
|
|
||||||
if not self.barFrame.icon then
|
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
|
-- default texture so that 'config mode' can work without activating the bar first
|
||||||
self.barFrame.icon:SetTexture("Interface\\Icons\\Spell_Frost_Frost")
|
self.barFrame.icon:SetTexture("Interface\\Icons\\Spell_Frost_Frost")
|
||||||
-- this cuts off the border around the buff icon
|
-- this cuts off the border around the buff icon
|
||||||
self.barFrame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
|
self.barFrame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
|
||||||
self.barFrame.icon:SetDrawLayer("OVERLAY")
|
|
||||||
end
|
end
|
||||||
self:PositionIcons()
|
self:PositionIcons()
|
||||||
end
|
end
|
||||||
|
@ -70,6 +70,7 @@ function IceElement.prototype:Create(parent)
|
|||||||
self.parent = parent
|
self.parent = parent
|
||||||
if not self.masterFrame then
|
if not self.masterFrame then
|
||||||
self.masterFrame = CreateFrame("Frame", nil, self.parent)
|
self.masterFrame = CreateFrame("Frame", nil, self.parent)
|
||||||
|
self.masterFrame:SetFrameStrata("MEDIUM")
|
||||||
end
|
end
|
||||||
self:CreateFrame()
|
self:CreateFrame()
|
||||||
self:Show(false)
|
self:Show(false)
|
||||||
|
Reference in New Issue
Block a user