Files
HailMaryGuildTools/Modules/Tracker/InterruptTracker/InterruptTracker.lua
2026-04-24 23:43:55 +02:00

41 lines
1019 B
Lua

local ADDON_NAME = "HailMaryGuildTools"
local HMGT = LibStub("AceAddon-3.0"):GetAddon(ADDON_NAME)
if not HMGT then return end
local L = LibStub("AceLocale-3.0"):GetLocale(ADDON_NAME)
local module = HMGT:NewModule("InterruptTracker")
HMGT.InterruptTracker = module
module.definition = {
moduleName = "InterruptTracker",
dbKey = "interruptTracker",
trackerType = "normal",
trackerKey = "interruptTracker",
title = function()
return L["IT_TITLE"]
end,
categories = { "interrupt" },
}
function module:GetDefinition()
return self.definition
end
function module:GetSettings()
local profile = HMGT.db and HMGT.db.profile
return profile and profile[self.definition.dbKey] or nil
end
function module:Enable()
if HMGT.TrackerManager and HMGT.TrackerManager.Enable then
HMGT.TrackerManager:Enable()
end
end
function module:Disable()
if HMGT.TrackerManager and HMGT.TrackerManager.UpdateDisplay then
HMGT.TrackerManager:UpdateDisplay()
end
end