- removed the last remnants of Ace2 (AceOO-2.0 and AceLibrary) thanks to a huge amount of help from ckknight for metatables

This commit is contained in:
Parnic
2010-09-17 05:41:04 +00:00
parent fd6d570e0b
commit 250adfc2db
56 changed files with 203 additions and 294 deletions

View File

@ -1,16 +1,14 @@
local AceOO = AceLibrary("AceOO-2.0")
local PetMana = AceOO.Class(IceUnitBar)
local PetMana = IceCore_CreateClass(IceUnitBar)
-- Constructor --
function PetMana.prototype:init()
PetMana.super.prototype.init(self, "PetMana", "pet")
self:SetDefaultColor("PetMana", 62, 54, 152)
self:SetDefaultColor("PetRage", 171, 59, 59)
self:SetDefaultColor("PetEnergy", 218, 231, 31)
self:SetDefaultColor("PetFocus", 242, 149, 98)
self.scalingEnabled = true
end
@ -42,7 +40,7 @@ function PetMana.prototype:CreateFrame()
else
point = "BOTTOMRIGHT"
end
self.frame.bottomUpperText:ClearAllPoints()
self.frame.bottomUpperText:SetPoint(point, relativeTo, relativePoint, 0, 0)
end
@ -95,7 +93,7 @@ function PetMana.prototype:ManaType(event, unit)
if (unit ~= self.unit) then
return
end
self.manaType = UnitPowerType(self.unit)
self:Update(self.unit)
end