- updated to support LibDogTag-3.0

- on first run, forced reset all custom DogTags to the module default since some of the old default tags no longer work
This commit is contained in:
Parnic
2008-04-03 07:10:30 +00:00
parent 0ec9b2bb95
commit 55028c88fb
11 changed files with 50 additions and 26 deletions

View File

@ -27,7 +27,7 @@ function TargetHealth.prototype:GetDefaultSettings()
settings["classColor"] = false
settings["hideBlizz"] = true
settings["upperText"] = "[PercentHP:Round]"
settings["lowerText"] = "[Text([CurHP:Round]/[MaxHP:Round]):HPColor:Bracket]"
settings["lowerText"] = "[(HP:Round \"/\" MaxHP:Round):HPColor:Bracket]"
settings["raidIconOnTop"] = true
settings["showRaidIcon"] = true
settings["raidIconXOffset"] = 12
@ -291,7 +291,7 @@ function TargetHealth.prototype:Update(unit)
self:UpdateBar(self.health/self.maxHealth, self.color)
if not AceLibrary:HasInstance("LibDogTag-2.0") then
if not AceLibrary:HasInstance("LibDogTag-3.0") then
self:SetBottomText1(math.floor(self.healthPercentage * 100))
-- first see if we have LibMobHealth that we can piggyback on