- temporarily removing DogTag code so that Pitbull and IceHUD can play together in harmony until DogTag is fixed

This commit is contained in:
Parnic
2008-02-09 03:24:25 +00:00
parent 7965b83468
commit 3e81b0b11b
6 changed files with 49 additions and 47 deletions

View File

@ -66,6 +66,11 @@ function PetHealth.prototype:Enable(core)
self:RegisterEvent("UNIT_HAPPINESS", "PetHappiness")
if DogTag ~= nil then
-- DogTag:AddFontString(self.frame.bottomUpperText, self.frame, self.unit, self.moduleSettings.upperText)
-- DogTag:AddFontString(self.frame.bottomLowerText, self.frame, self.unit, self.moduleSettings.lowerText)
end
self:CheckPet()
end
@ -115,15 +120,10 @@ function PetHealth.prototype:Update(unit)
self:UpdateBar(self.health/self.maxHealth, color)
if DogTag ~= nil then
if self.moduleSettings.upperText ~= nil and self.moduleSettings.upperText ~= '' then
self:SetBottomText1(DogTag:Evaluate("pet", self.moduleSettings.upperText))
end
if self.moduleSettings.lowerText ~= nil and self.moduleSettings.lowerText ~= '' then
self:SetBottomText2(DogTag:Evaluate("pet", self.moduleSettings.lowerText))
end
if DogTag ~= nil and false then
DogTag:UpdateAllForFrame(self.frame)
else
self:SetBottomText1(self.healthPercentage)
self:SetBottomText1(math.floor(self.healthPercentage * 100))
end
end

View File

@ -72,6 +72,11 @@ function PetMana.prototype:Enable(core)
self:CheckPet()
self:ManaType(self.unit)
if DogTag ~= nil then
-- DogTag:AddFontString(self.frame.bottomUpperText, self.frame, self.unit, self.moduleSettings.upperText)
-- DogTag:AddFontString(self.frame.bottomLowerText, self.frame, self.unit, self.moduleSettings.lowerText)
end
end
@ -126,15 +131,10 @@ function PetMana.prototype:Update(unit)
self:UpdateBar(self.mana/self.maxMana, color)
if DogTag ~= nil then
if self.moduleSettings.upperText ~= nil and self.moduleSettings.upperText ~= '' then
self:SetBottomText1(DogTag:Evaluate("player", self.moduleSettings.upperText))
end
if self.moduleSettings.lowerText ~= nil and self.moduleSettings.lowerText ~= '' then
self:SetBottomText2(DogTag:Evaluate("player", self.moduleSettings.lowerText))
end
if DogTag ~= nil and false then
DogTag:UpdateAllForFrame(self.frame)
else
self:SetBottomText1(self.manaPercentage)
self:SetBottomText1(math.floor(self.manaPercentage * 100))
end
end

View File

@ -43,6 +43,11 @@ function PlayerHealth.prototype:Enable(core)
if (self.moduleSettings.hideBlizz) then
self:HideBlizz()
end
if DogTag ~= nil then
-- DogTag:AddFontString(self.frame.bottomUpperText, self.frame, self.unit, self.moduleSettings.upperText)
-- DogTag:AddFontString(self.frame.bottomLowerText, self.frame, self.unit, self.moduleSettings.lowerText)
end
self:Resting()
--self:Update(self.unit)
@ -145,15 +150,10 @@ function PlayerHealth.prototype:Update(unit)
self:UpdateBar(self.health/self.maxHealth, color)
if DogTag ~= nil then
if self.moduleSettings.upperText ~= nil and self.moduleSettings.upperText ~= '' then
self:SetBottomText1(DogTag:Evaluate("player", self.moduleSettings.upperText))
end
if self.moduleSettings.lowerText ~= nil and self.moduleSettings.lowerText ~= '' then
self:SetBottomText2(DogTag:Evaluate("player", self.moduleSettings.lowerText))
end
if DogTag ~= nil and false then
DogTag:UpdateAllForFrame(self.frame)
else
self:SetBottomText1(self.healthPercentage)
self:SetBottomText1(math.floor(self.healthPercentage * 100))
self:SetBottomText2(self:GetFormattedText(self.health, self.maxHealth), textColor)
end
end

View File

@ -115,6 +115,11 @@ function PlayerMana.prototype:Enable(core)
self:RegisterEvent("UNIT_DISPLAYPOWER", "ManaType")
self:ManaType(self.unit)
if DogTag ~= nil then
-- DogTag:AddFontString(self.frame.bottomUpperText, self.frame, self.unit, self.moduleSettings.upperText)
-- DogTag:AddFontString(self.frame.bottomLowerText, self.frame, self.unit, self.moduleSettings.lowerText)
end
end
@ -191,18 +196,15 @@ function PlayerMana.prototype:Update(unit)
self.tickerFrame:SetStatusBarColor(self:GetColor("PlayerEnergy", self.moduleSettings.tickerAlpha))
end
if DogTag ~= nil then
if self.moduleSettings.upperText ~= nil and self.moduleSettings.upperText ~= '' then
self:SetBottomText1(DogTag:Evaluate("player", self.moduleSettings.upperText))
end
if self.moduleSettings.lowerText ~= nil and self.moduleSettings.lowerText ~= '' then
self:SetBottomText2(DogTag:Evaluate("player", self.moduleSettings.lowerText))
end
if DogTag ~= nil and false then
DogTag:UpdateAllForFrame(self.frame)
else
-- extra hack for whiny rogues (are there other kind?)
local displayPercentage = self.manaPercentage
if (self.manaType == 3) then
displayPercentage = self.mana
else
displayPercentage = math.floor(displayPercentage * 100)
end
self:SetBottomText1(displayPercentage)

View File

@ -211,6 +211,11 @@ function TargetHealth.prototype:Enable(core)
self:CreateRaidIconFrame()
if DogTag ~= nil then
-- DogTag:AddFontString(self.frame.bottomUpperText, self.frame, self.unit, self.moduleSettings.upperText)
-- DogTag:AddFontString(self.frame.bottomLowerText, self.frame, self.unit, self.moduleSettings.lowerText)
end
self:Update(self.unit)
end
@ -259,15 +264,10 @@ function TargetHealth.prototype:Update(unit)
self:UpdateBar(self.health/self.maxHealth, self.color)
if DogTag ~= nil then
if self.moduleSettings.upperText ~= nil and self.moduleSettings.upperText ~= '' then
self:SetBottomText1(DogTag:Evaluate("target", self.moduleSettings.upperText))
end
if self.moduleSettings.lowerText ~= nil and self.moduleSettings.lowerText ~= '' then
self:SetBottomText2(DogTag:Evaluate("target", self.moduleSettings.lowerText))
end
if DogTag ~= nil and false then
DogTag:UpdateAllForFrame(self.frame)
else
self:SetBottomText1(self.healthPercentage)
self:SetBottomText1(math.floor(self.healthPercentage * 100))
-- assumption that if a unit's max health is 100, it's not actual amount
-- but rather a percentage - this obviously has one caveat though

View File

@ -45,6 +45,11 @@ function TargetMana.prototype:Enable(core)
self:RegisterEvent("UNIT_MAXFOCUS", "Update")
self:RegisterEvent("UNIT_AURA", "Update")
self:RegisterEvent("UNIT_FLAGS", "Update")
if DogTag ~= nil then
-- DogTag:AddFontString(self.frame.bottomUpperText, self.frame, self.unit, self.moduleSettings.upperText)
-- DogTag:AddFontString(self.frame.bottomLowerText, self.frame, self.unit, self.moduleSettings.lowerText)
end
self:Update("target")
end
@ -85,15 +90,10 @@ function TargetMana.prototype:Update(unit)
self:UpdateBar(self.mana/self.maxMana, color)
if DogTag ~= nil then
if self.moduleSettings.upperText ~= nil and self.moduleSettings.upperText ~= '' then
self:SetBottomText1(DogTag:Evaluate("target", self.moduleSettings.upperText))
end
if self.moduleSettings.lowerText ~= nil and self.moduleSettings.lowerText ~= '' then
self:SetBottomText2(DogTag:Evaluate("target", self.moduleSettings.lowerText))
end
if DogTag ~= nil and false then
DogTag:UpdateAllForFrame(self.frame)
else
self:SetBottomText1(self.manaPercentage)
self:SetBottomText1(math.floor(self.manaPercentage * 100))
self:SetBottomText2(self:GetFormattedText(self.mana, self.maxMana), color)
end
end