Version 0.2

- Added basic pet support
- Added configuration (via both console and Dewdrop)
- Fixed indexing problem with non-English clients
This commit is contained in:
iceroth
2006-07-21 09:11:03 +00:00
parent 772fe5a179
commit 0106530c98
17 changed files with 948 additions and 136 deletions

View File

@ -7,14 +7,20 @@ PlayerMana.prototype.manaType = nil
-- Constructor --
function PlayerMana.prototype:init()
PlayerMana.super.prototype.init(self, "PlayerMana", "player")
self.side = IceCore.Side.Right
self.offset = 1
self:SetColor("playerMana", 62, 54, 152)
self:SetColor("playerRage", 171, 59, 59)
self:SetColor("playerEnergy", 218, 231, 31)
end
function PlayerMana.prototype:GetDefaultSettings()
local settings = PlayerMana.super.prototype.GetDefaultSettings(self)
settings["side"] = IceCore.Side.Right
settings["offset"] = 1
return settings
end
function PlayerMana.prototype:Enable()
PlayerMana.super.prototype.Enable(self)
@ -29,7 +35,6 @@ function PlayerMana.prototype:Enable()
self:RegisterEvent("UNIT_DISPLAYPOWER", "ManaType")
self:ManaType(self.unit)
self:Update("player")
end