- 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:
Parnic
2008-04-17 02:38:54 +00:00
parent 9555a3db77
commit 3dc2f7f80f
13 changed files with 107 additions and 51 deletions

View File

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