Files
ice-hud/modules/PlayerCC.lua
Parnic 7e82f6d88a - added user-submitted PlayerCC and Target/PlayerInvuln classes
- added user-submitted root and silence groups to the CC modules
- filled out CC list a bit more with user-submitted spell id's
2010-01-11 01:10:50 +00:00

28 lines
852 B
Lua

local AceOO = AceLibrary("AceOO-2.0")
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
local PlayerCC = AceOO.Class(TargetCC)
-- Constructor --
function PlayerCC.prototype:init()
PlayerCC.super.prototype.init(self, "PlayerCC", "player")
end
-- 'Public' methods -----------------------------------------------------------
-- OVERRIDE
function PlayerCC.prototype:GetDefaultSettings()
local settings = PlayerCC.super.prototype.GetDefaultSettings(self)
settings["side"] = IceCore.Side.Left
settings["offset"] = 5
return settings
end
-- 'Protected' methods --------------------------------------------------------
-- Load us up
IceHUD.PlayerCC = PlayerCC:new()