mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed "bar visible" checkbox to also hide/show the solar portion of the eclipse bar
This commit is contained in:
@ -261,11 +261,7 @@ function IceBarElement.prototype:GetOptions()
|
|||||||
end,
|
end,
|
||||||
set = function(info, v)
|
set = function(info, v)
|
||||||
self.moduleSettings.barVisible['bar'] = v
|
self.moduleSettings.barVisible['bar'] = v
|
||||||
if v then
|
self:SetBarVisibility(v)
|
||||||
self.barFrame:Show()
|
|
||||||
else
|
|
||||||
self.barFrame:Hide()
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
disabled = function()
|
disabled = function()
|
||||||
return not self.moduleSettings.enabled
|
return not self.moduleSettings.enabled
|
||||||
@ -766,6 +762,14 @@ end
|
|||||||
return opts
|
return opts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function IceBarElement.prototype:SetBarVisibility(visible)
|
||||||
|
if visible then
|
||||||
|
self.barFrame:Show()
|
||||||
|
else
|
||||||
|
self.barFrame:Hide()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function IceBarElement.prototype:SetBarFramePoints()
|
function IceBarElement.prototype:SetBarFramePoints()
|
||||||
self.barFrame:ClearAllPoints()
|
self.barFrame:ClearAllPoints()
|
||||||
if (self.moduleSettings.inverse) then
|
if (self.moduleSettings.inverse) then
|
||||||
@ -1107,11 +1111,7 @@ function IceBarElement.prototype:UpdateBar(scale, color, alpha)
|
|||||||
self.frame.bg:Show()
|
self.frame.bg:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
if not self.moduleSettings.barVisible['bar'] then
|
self:SetBarVisibility(self.moduleSettings.barVisible['bar'])
|
||||||
self.barFrame:Hide()
|
|
||||||
else
|
|
||||||
self.barFrame:Show()
|
|
||||||
end
|
|
||||||
|
|
||||||
if DogTag ~= nil and self.moduleSettings.usesDogTagStrings then
|
if DogTag ~= nil and self.moduleSettings.usesDogTagStrings then
|
||||||
DogTag:UpdateAllForFrame(self.frame)
|
DogTag:UpdateAllForFrame(self.frame)
|
||||||
|
@ -56,6 +56,20 @@ function EclipseBar.prototype:Disable(core)
|
|||||||
EclipseBar.super.prototype.Disable(self, core)
|
EclipseBar.super.prototype.Disable(self, core)
|
||||||
end
|
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()
|
function EclipseBar.prototype:CreateFrame()
|
||||||
EclipseBar.super.prototype.CreateFrame(self)
|
EclipseBar.super.prototype.CreateFrame(self)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user