Files
HailMaryGuildTools/Modules/Tracker/RaidcooldownTracker/RaidcooldownTracker.lua
Torsten Brendgen cf78405148 nightly commit
2026-04-25 22:49:22 +02:00

45 lines
1.2 KiB
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("RaidCooldownTracker")
HMGT.RaidCooldownTracker = module
module.definition = {
moduleName = "RaidCooldownTracker",
dbKey = "raidCooldownTracker",
trackerType = "normal",
trackerKey = "raidCooldownTracker",
title = function()
return L["RCD_TITLE"]
end,
categories = { "lust", "defensive", "healing", "tank", "utility", "offensive", "cc", "interrupt" },
}
function module:GetDefinition()
return self.definition
end
function module:GetSettings()
for _, tracker in ipairs(HMGT:GetTrackerConfigs()) do
if tracker.trackerKey == self.definition.trackerKey then
return tracker
end
end
return 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