- 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

@ -73,10 +73,10 @@ end
function PetMana.prototype:CheckPet()
if (UnitExists(self.unit)) then
self.frame:Show()
self:Show(true)
self:Update(self.unit)
else
self.frame:Hide()
self:Show(false)
end
end
@ -98,10 +98,10 @@ function PetMana.prototype:Update(unit)
end
if ((not UnitExists(unit)) or (self.maxMana == 0)) then
self.frame:Hide()
self:Show(false)
return
else
self.frame:Show()
self:Show(true)
end
local color = "PetMana"