mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed the eclipse bar turning gray when adjusting settings that caused a Redraw()
This commit is contained in:
@ -21,6 +21,11 @@ function EclipseBar.prototype:init()
|
|||||||
self:SetDefaultColor("EclipseSolarActive", 238, 251, 31)
|
self:SetDefaultColor("EclipseSolarActive", 238, 251, 31)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function EclipseBar.prototype:Redraw()
|
||||||
|
EclipseBar.super.prototype.Redraw(self)
|
||||||
|
self:MyOnUpdate()
|
||||||
|
end
|
||||||
|
|
||||||
function EclipseBar.prototype:GetOptions()
|
function EclipseBar.prototype:GetOptions()
|
||||||
local opts = EclipseBar.super.prototype.GetOptions(self)
|
local opts = EclipseBar.super.prototype.GetOptions(self)
|
||||||
opts.reverse.hidden = true
|
opts.reverse.hidden = true
|
||||||
@ -103,14 +108,9 @@ end
|
|||||||
|
|
||||||
function EclipseBar.prototype:CreateSolarBar()
|
function EclipseBar.prototype:CreateSolarBar()
|
||||||
self.solarBar = self:BarFactory(self.solarBar,"BACKGROUND", "ARTWORK")
|
self.solarBar = self:BarFactory(self.solarBar,"BACKGROUND", "ARTWORK")
|
||||||
|
self:SetBarCoord(self.solarBar, 0.5, true)
|
||||||
local offsetY
|
|
||||||
local scale = 0.5
|
|
||||||
|
|
||||||
self:SetBarCoord(self.solarBar, scale, true)
|
|
||||||
|
|
||||||
self.solarBar.bar:SetVertexColor(self:GetColor("EclipseSolar", 1))
|
self.solarBar.bar:SetVertexColor(self:GetColor("EclipseSolar", 1))
|
||||||
|
|
||||||
self.solarBar.bar:Show()
|
self.solarBar.bar:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user