- fixed the eclipse bar turning gray when adjusting settings that caused a Redraw()

This commit is contained in:
Parnic
2010-11-05 01:39:06 +00:00
parent 93c70c545e
commit 508b022572

View File

@ -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