mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- set default sides and offsets on all bars to avoid them overlapping each other (fixes mirror/threat overlap and a few others)
28 lines
844 B
Lua
28 lines
844 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.Right
|
|
settings["offset"] = 5
|
|
|
|
return settings
|
|
end
|
|
|
|
-- 'Protected' methods --------------------------------------------------------
|
|
|
|
-- Load us up
|
|
IceHUD.FocusCC = FocusCC:new()
|