mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
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:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user