Add structure for achievement sniffer

This commit is contained in:
2025-01-26 22:44:59 +01:00
parent 950f95cef1
commit c61a4b0c04
4 changed files with 119 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
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