Files
ice-hud/modules/FocusCC.lua
Parnic 546a19c2d8 - fixed CC bars to work for any loc by using GetSpellInfo along with a list of spell ID's for each CC spell it supports (thanks to Arrowmaster/#wowace for the help!)
- made FocusCC basically an empty shell that just inherits from TargetCC and specifies a different unit (should have done this in the first place...)
- cleaned spacing/formatting in TargetCC module
2008-06-25 02:54:15 +00:00

28 lines
843 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 FocusCC = AceOO.Class(TargetCC)
-- Constructor --
function FocusCC.prototype:init()
FocusCC.super.prototype.init(self, "FocusCC", "focus")
end
-- 'Public' methods -----------------------------------------------------------
-- OVERRIDE
function FocusCC.prototype:GetDefaultSettings()
local settings = FocusCC.super.prototype.GetDefaultSettings(self)
settings["side"] = IceCore.Side.Left
settings["offset"] = 4
return settings
end
-- 'Protected' methods --------------------------------------------------------
-- Load us up
IceHUD.FocusCC = FocusCC:new()