mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Added Absorb modules for focus, target, and player.
This commit is contained in:
29
modules/FocusAbsorb.lua
Normal file
29
modules/FocusAbsorb.lua
Normal file
@ -0,0 +1,29 @@
|
||||
local FocusAbsorb = IceCore_CreateClass(IceTargetAbsorb)
|
||||
|
||||
-- Constructor --
|
||||
function FocusAbsorb.prototype:init()
|
||||
FocusAbsorb.super.prototype.init(self, "FocusAbsorb", "focus", "FocusAbsorb")
|
||||
end
|
||||
|
||||
-- 'Public' methods -----------------------------------------------------------
|
||||
|
||||
-- OVERRIDE
|
||||
function FocusAbsorb.prototype:GetDefaultSettings()
|
||||
local settings = FocusAbsorb.super.prototype.GetDefaultSettings(self)
|
||||
|
||||
settings["side"] = IceCore.Side.Right
|
||||
settings["offset"] = 6
|
||||
|
||||
return settings
|
||||
end
|
||||
|
||||
function FocusAbsorb.prototype:MyRegisterCustomEvents()
|
||||
self:RegisterEvent("PLAYER_FOCUS_CHANGED", "UpdateAbsorbAmount")
|
||||
end
|
||||
|
||||
function FocusAbsorb.prototype:MyUnregisterCustomEvents()
|
||||
self:UnregisterEvent("PLAYER_FOCUS_CHANGED")
|
||||
end
|
||||
|
||||
-- Load us up
|
||||
IceHUD.FocusAbsorb = FocusAbsorb:new()
|
Reference in New Issue
Block a user