Fix: fixed aura module with initial configuration and support for tracking buffs, debuffs, and weapon enchants

removed incorrect tutorial tooltip
This commit is contained in:
Bluewhale1337
2026-07-26 11:31:09 +02:00
parent 822f2301cb
commit d56d2647c3
5 changed files with 48 additions and 2 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ function A:ConfigureAuras(header, auraTable, weaponPosition)
top = max(top, button:GetTop() or -huge)
bottom = min(bottom, button:GetBottom() or huge)
end
local deadIndex = (getn(auraTable) + numWeapon) + 1
local deadIndex = getn(auraTable) + 1
button = _G[headerName.."AuraButton"..deadIndex]
while button do
if button:IsShown() then button:Hide() end
+34
View File
@@ -7,6 +7,40 @@ local min = math.min
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local GetScreenHeight = GetScreenHeight
local GetNumQuestWatches = GetNumQuestWatches
local GetQuestIndexForWatch = GetQuestIndexForWatch
local RemoveQuestWatch = RemoveQuestWatch
local AddQuestWatch = AddQuestWatch
local QuestWatch_Update = QuestWatch_Update
local original_QuestWatch_Update = QuestWatch_Update
function _G.QuestWatch_Update()
local watched = {}
local order = {}
local hasDuplicates = false
for i = 1, GetNumQuestWatches() do
local qIndex = GetQuestIndexForWatch(i)
if qIndex then
if watched[qIndex] then
hasDuplicates = true
else
watched[qIndex] = true
table.insert(order, qIndex)
end
end
end
if hasDuplicates then
for i = 1, table.getn(order) do
RemoveQuestWatch(order[i])
end
for i = 1, table.getn(order) do
AddQuestWatch(order[i])
end
end
original_QuestWatch_Update()
end
local WatchFrameHolder = CreateFrame("Frame", "WatchFrameHolder", E.UIParent)
WatchFrameHolder:SetWidth(150)