Add ability to adjust strata globally

Submitted by slowkerd from Curseforge (thanks!)
This commit is contained in:
Parnic
2023-08-02 08:16:12 -05:00
parent b32f090644
commit 40fc8187fd
24 changed files with 112 additions and 41 deletions

View File

@ -933,7 +933,7 @@ function PlayerHealth.prototype:CreateBackground(redraw)
end
function PlayerHealth.prototype:CreateHealBar()
self.healFrame = self:BarFactory(self.healFrame, "LOW","BACKGROUND", "Heal")
self.healFrame = self:BarFactory(self.healFrame, IceHUD.IceCore:DetermineStrata("LOW"),"BACKGROUND", "Heal")
self.healFrame.bar:SetVertexColor(self:GetColor("PlayerHealthHealAmount", self.alpha * self.moduleSettings.healAlpha))
@ -945,7 +945,7 @@ function PlayerHealth.prototype:CreateHealBar()
end
function PlayerHealth.prototype:CreateAbsorbBar()
self.absorbFrame = self:BarFactory(self.absorbFrame, "LOW","BACKGROUND", "Absorb")
self.absorbFrame = self:BarFactory(self.absorbFrame, IceHUD.IceCore:DetermineStrata("LOW"),"BACKGROUND", "Absorb")
self.absorbFrame.bar:SetVertexColor(self:GetColor("PlayerHealthAbsorbAmount", self.alpha * self.moduleSettings.absorbAlpha))