mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fix textures on count modules.
This commit is contained in:
@ -194,18 +194,21 @@ function MaelstromCount.prototype:CreateMaelstromFrame(doTextureUpdate)
|
||||
-- create backgrounds
|
||||
for i = 1, 5 do
|
||||
if (not self.frame.graphicalBG[i]) then
|
||||
self.frame.graphicalBG[i] = CreateFrame("StatusBar", nil, self.frame)
|
||||
local frame = CreateFrame("Frame", nil, self.frame)
|
||||
self.frame.graphicalBG[i] = frame
|
||||
frame.texture = frame:CreateTexture()
|
||||
frame.texture:SetAllPoints(frame)
|
||||
end
|
||||
|
||||
if doTextureUpdate then
|
||||
if self.moduleSettings.maelstromMode == "Graphical Bar" then
|
||||
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboBG")
|
||||
self.frame.graphicalBG[i].texture:SetTexture(IceElement.TexturePath .. "ComboBG")
|
||||
elseif self.moduleSettings.maelstromMode == "Graphical Circle" then
|
||||
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboRoundBG")
|
||||
self.frame.graphicalBG[i].texture:SetTexture(IceElement.TexturePath .. "ComboRoundBG")
|
||||
elseif self.moduleSettings.maelstromMode == "Graphical Glow" then
|
||||
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboGlowBG")
|
||||
self.frame.graphicalBG[i].texture:SetTexture(IceElement.TexturePath .. "ComboGlowBG")
|
||||
elseif self.moduleSettings.maelstromMode == "Graphical Clean Circle" then
|
||||
self.frame.graphicalBG[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboCleanCurvesBG")
|
||||
self.frame.graphicalBG[i].texture:SetTexture(IceElement.TexturePath .. "ComboCleanCurvesBG")
|
||||
end
|
||||
end
|
||||
|
||||
@ -214,7 +217,7 @@ function MaelstromCount.prototype:CreateMaelstromFrame(doTextureUpdate)
|
||||
self.frame.graphicalBG[i]:SetHeight(self.maelstromSize)
|
||||
self.frame.graphicalBG[i]:SetPoint("TOPLEFT", (i-1) * (self.maelstromSize-5) + (i-1) + ((i-1) * self.moduleSettings.maelstromGap), 0)
|
||||
self.frame.graphicalBG[i]:SetAlpha(0.15)
|
||||
self.frame.graphicalBG[i]:SetStatusBarColor(self:GetColor("MaelstromCount"))
|
||||
self.frame.graphicalBG[i].texture:SetVertexColor(self:GetColor("MaelstromCount"))
|
||||
|
||||
self.frame.graphicalBG[i]:Hide()
|
||||
end
|
||||
@ -222,18 +225,21 @@ function MaelstromCount.prototype:CreateMaelstromFrame(doTextureUpdate)
|
||||
-- create maelstroms
|
||||
for i = 1, 5 do
|
||||
if (not self.frame.graphical[i]) then
|
||||
self.frame.graphical[i] = CreateFrame("StatusBar", nil, self.frame)
|
||||
local frame = CreateFrame("Frame", nil, self.frame)
|
||||
self.frame.graphical[i] = frame
|
||||
frame.texture = frame:CreateTexture()
|
||||
frame.texture:SetAllPoints(frame)
|
||||
end
|
||||
|
||||
if doTextureUpdate then
|
||||
if self.moduleSettings.maelstromMode == "Graphical Bar" then
|
||||
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "Combo")
|
||||
self.frame.graphical[i].texture:SetTexture(IceElement.TexturePath .. "Combo")
|
||||
elseif self.moduleSettings.maelstromMode == "Graphical Circle" then
|
||||
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboRound")
|
||||
self.frame.graphical[i].texture:SetTexture(IceElement.TexturePath .. "ComboRound")
|
||||
elseif self.moduleSettings.maelstromMode == "Graphical Glow" then
|
||||
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboGlow")
|
||||
self.frame.graphical[i].texture:SetTexture(IceElement.TexturePath .. "ComboGlow")
|
||||
elseif self.moduleSettings.maelstromMode == "Graphical Clean Circle" then
|
||||
self.frame.graphical[i]:SetStatusBarTexture(IceElement.TexturePath .. "ComboCleanCurves")
|
||||
self.frame.graphical[i].texture:SetTexture(IceElement.TexturePath .. "ComboCleanCurves")
|
||||
end
|
||||
end
|
||||
|
||||
@ -244,7 +250,7 @@ function MaelstromCount.prototype:CreateMaelstromFrame(doTextureUpdate)
|
||||
if (self.moduleSettings.gradient) then
|
||||
g = g - (0.15*i)
|
||||
end
|
||||
self.frame.graphical[i]:SetStatusBarColor(r, g, b)
|
||||
self.frame.graphical[i].texture:SetVertexColor(r, g, b)
|
||||
|
||||
self.frame.graphical[i]:Hide()
|
||||
end
|
||||
|
Reference in New Issue
Block a user