- fixed "bar visible" checkbox to also hide/show the solar portion of the eclipse bar

This commit is contained in:
Parnic
2010-10-16 15:40:37 +00:00
parent dc85c43a3e
commit 88a309ef8c
2 changed files with 24 additions and 10 deletions

View File

@ -56,6 +56,20 @@ function EclipseBar.prototype:Disable(core)
EclipseBar.super.prototype.Disable(self, core)
end
function EclipseBar.prototype:SetBarVisibility(visible)
EclipseBar.super.prototype.SetBarVisibility(self, visible)
if not self.solarBar then
return
end
if visible then
self.solarBar:Show()
else
self.solarBar:Hide()
end
end
function EclipseBar.prototype:CreateFrame()
EclipseBar.super.prototype.CreateFrame(self)