mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added a configuration mode to show all bars temporarily so they can be placed
- changed how frames are shown and hidden so we don't call show/hide unnecessarily - widened the min/max offset numbers to allow greater placement flexibility
This commit is contained in:
@ -46,7 +46,7 @@ function MirrorBar.prototype:Enable(core)
|
||||
self.frame.bottomUpperText:SetWidth(200)
|
||||
self.frame.bottomLowerText:SetWidth(200)
|
||||
|
||||
self.frame:Hide()
|
||||
self:Show(false)
|
||||
end
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ function MirrorBar.prototype:Create(parent)
|
||||
MirrorBar.super.prototype.Create(self, parent)
|
||||
|
||||
if (self.timer) then
|
||||
self.frame:Show()
|
||||
self:Show(true)
|
||||
end
|
||||
end
|
||||
|
||||
@ -114,14 +114,14 @@ function MirrorBar.prototype:MirrorStart(timer, value, maxValue, scale, paused,
|
||||
self.startTime = GetTime()
|
||||
|
||||
self:Update()
|
||||
self.frame:Show()
|
||||
self:Show(true)
|
||||
self.frame:SetScript("OnUpdate", function() self:OnUpdate(arg1) end)
|
||||
end
|
||||
|
||||
|
||||
function MirrorBar.prototype:MirrorStop()
|
||||
self:CleanUp()
|
||||
self.frame:Hide()
|
||||
self:Show(false)
|
||||
self.frame:SetScript("OnUpdate", nil)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user