mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- MAJOR thanks to Shefki for finding and fixing most of the 3.3.3 issues!
- fixed runes module - fixed a few other minor issues
This commit is contained in:
@ -644,7 +644,7 @@ function IceBarElement.prototype:CreateBar()
|
||||
|
||||
|
||||
if not (self.barFrame.bar) then
|
||||
self.barFrame.bar = self.frame:CreateTexture(nil, "BACKGROUND")
|
||||
self.barFrame.bar = self.frame:CreateTexture(nil, "LOW")
|
||||
end
|
||||
|
||||
self.barFrame.bar:SetTexture(IceElement.TexturePath .. self:GetMyBarTexture())
|
||||
@ -839,7 +839,7 @@ function IceBarElement.prototype:UpdateBar(scale, color, alpha)
|
||||
self.alpha = 1
|
||||
end
|
||||
|
||||
self.frame.bg:SetVertexColor(r, g, b, self.backGroundAlpha)
|
||||
self.frame.bg:SetVertexColor(r, g, b, self.backgroundAlpha)
|
||||
self.barFrame.bar:SetVertexColor(self:GetColor(color))
|
||||
|
||||
if self.DesiredScale ~= scale then
|
||||
|
@ -303,7 +303,7 @@ function ComboPoints.prototype:CreateComboFrame(forceTextureUpdate)
|
||||
end
|
||||
end
|
||||
|
||||
self.frame.graphical[i]:SetFrameStrata("BACKGROUND")
|
||||
self.frame.graphical[i]:SetFrameStrata("LOW")
|
||||
self.frame.graphical[i]:SetAllPoints(self.frame.graphicalBG[i])
|
||||
|
||||
local r, g, b = self:GetColor("ComboPoints")
|
||||
|
@ -301,8 +301,8 @@ function Runes.prototype:UpdateRuneType(rune)
|
||||
|
||||
local thisRuneName = self.runeNames[GetRuneType(rune)]
|
||||
|
||||
self.frame.graphical[rune]:SetStatusBarTexture(self:GetRuneTexture(thisRuneName))
|
||||
self.frame.graphical[rune]:SetStatusBarColor(self:GetColor("Runes"..thisRuneName))
|
||||
self.frame.graphical[rune].rune:SetTexture(self:GetRuneTexture(thisRuneName))
|
||||
self.frame.graphical[rune].rune:SetVertexColor(self:GetColor("Runes"..thisRuneName))
|
||||
end
|
||||
|
||||
function Runes.prototype:GetRuneTexture(runeName)
|
||||
@ -365,11 +365,13 @@ function Runes.prototype:CreateRune(i, type, name)
|
||||
|
||||
-- create runes
|
||||
if (not self.frame.graphical[i]) then
|
||||
self.frame.graphical[i] = CreateFrame("StatusBar", nil, self.frame)
|
||||
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: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")
|
||||
|
||||
self.frame.graphical[i]:SetStatusBarTexture(self:GetRuneTexture(name))
|
||||
self.frame.graphical[i].rune:SetTexture(self:GetRuneTexture(name))
|
||||
end
|
||||
|
||||
self.frame.graphical[i]:SetFrameStrata("BACKGROUND")
|
||||
@ -391,7 +393,7 @@ function Runes.prototype:CreateRune(i, type, name)
|
||||
self.frame.graphical[i]:SetPoint("TOPLEFT", 0, -1 * ((runeSwapI-1) * (self.runeSize-5) + (runeSwapI-1) + ((runeSwapI-1) * self.moduleSettings.runeGap)))
|
||||
end
|
||||
|
||||
self.frame.graphical[i]:SetStatusBarColor(self:GetColor("Runes"..name))
|
||||
self.frame.graphical[i].rune:SetVertexColor(self:GetColor("Runes"..name))
|
||||
self.frame.graphical[i]:Show()
|
||||
|
||||
self.frame.graphical[i].cd:SetFrameStrata("BACKGROUND")
|
||||
|
@ -140,16 +140,16 @@ end
|
||||
|
||||
function SliceAndDice.prototype:CreateDurationBar()
|
||||
if not self.durationFrame then
|
||||
self.durationFrame = CreateFrame("Statusbar", nil, self.frame)
|
||||
self.durationFrame = CreateFrame("Frame", nil, self.frame)
|
||||
self.CurrScale = 0
|
||||
end
|
||||
|
||||
self.durationFrame:SetFrameStrata("LOW")
|
||||
self.durationFrame:SetFrameStrata("BACKGROUND")
|
||||
self.durationFrame:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
||||
self.durationFrame:SetHeight(self.settings.barHeight)
|
||||
|
||||
if not self.durationFrame.bar then
|
||||
self.durationFrame.bar = self.frame:CreateTexture(nil, "BACKGROUND")
|
||||
self.durationFrame.bar = self.frame:CreateTexture(nil, "LOW")
|
||||
end
|
||||
|
||||
self.durationFrame.bar:SetTexture(IceElement.TexturePath .. self:GetMyBarTexture())
|
||||
|
@ -163,10 +163,10 @@ function IceThreat.prototype:CreateAggroBar()
|
||||
self.aggroBar:SetHeight(self.settings.barHeight)
|
||||
|
||||
if not (self.aggroBar.bar) then
|
||||
self.aggroBar.bar = self.aggroBar:CreateTexture(nil, "BACKGROUND")
|
||||
self.aggroBar.bar = self.aggroBar:CreateTexture(nil, "LOW")
|
||||
end
|
||||
|
||||
self.aggroBar.bar:SetTexture(IceElement.TexturePath .. self:GetMyBarTexture() .. "BG")
|
||||
self.aggroBar.bar:SetTexture(IceElement.TexturePath .. self:GetMyBarTexture())
|
||||
self.aggroBar.bar:SetPoint("BOTTOMLEFT",self.aggroBar,"BOTTOMLEFT")
|
||||
self.aggroBar.bar:SetPoint("BOTTOMRIGHT",self.aggroBar,"BOTTOMRIGHT")
|
||||
|
||||
|
Reference in New Issue
Block a user