28 lines
845 B
Lua
28 lines
845 B
Lua
local addonname, shared = ...
|
|
---@cast shared HeimdallShared
|
|
---@cast addonname string
|
|
local ModuleName = "AchievementSniffer"
|
|
|
|
local HeimdallRoot = "Interface\\AddOns\\Heimdall\\"
|
|
local TextureRoot = HeimdallRoot .. "Texture\\"
|
|
|
|
---@diagnostic disable-next-line: missing-fields
|
|
shared.AchievementSniffer = {}
|
|
function shared.AchievementSniffer.Init()
|
|
if Heimdall_Data.config.achievementSniffer.debug then
|
|
print(string.format("[%s] Module initialized", ModuleName))
|
|
end
|
|
|
|
local framePool = {}
|
|
for i = 1, 40 do
|
|
local frame = CreateFrame("Frame")
|
|
frame.custom = { busy = false }
|
|
local texture = frame:CreateTexture(nil, "ARTWORK")
|
|
texture:SetAllPoints(frame)
|
|
texture:SetTexture(TextureRoot .. Heimdall_Data.config.achievementSniffer.texture)
|
|
table.insert(framePool, frame)
|
|
end
|
|
|
|
print("[Heimdall] AchievementSniffer loaded")
|
|
end
|