mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
test
This commit is contained in:
@@ -414,16 +414,18 @@ function A:UpdateHeader(header)
|
|||||||
weaponPosition = 1
|
weaponPosition = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, 24 do
|
local i, aura, buffIndex, icon = 0
|
||||||
local aura, _ = freshTable()
|
while true do
|
||||||
local buffIndex = GetPlayerBuff(i - 1, filter)
|
aura = freshTable()
|
||||||
aura.icon = GetPlayerBuffTexture(buffIndex)
|
buffIndex = GetPlayerBuff(i, filter)
|
||||||
if aura.icon then
|
icon = GetPlayerBuffTexture(buffIndex)
|
||||||
aura.count, aura.dispelType, aura.expires = GetPlayerBuffApplications(buffIndex), GetPlayerBuffDispelType(buffIndex), GetPlayerBuffTimeLeft(buffIndex)
|
if not icon then releaseTable(aura) break end
|
||||||
aura.index = buffIndex
|
aura.count, aura.dispelType, aura.expires = GetPlayerBuffApplications(buffIndex), GetPlayerBuffDispelType(buffIndex), GetPlayerBuffTimeLeft(buffIndex)
|
||||||
aura.filter = filter
|
aura.icon = icon
|
||||||
tinsert(sortingTable, aura)
|
aura.index = buffIndex
|
||||||
end
|
aura.filter = filter
|
||||||
|
tinsert(sortingTable, aura)
|
||||||
|
i = i + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local sortMethod = (sorters[db.sortMethod] or sorters["INDEX"])[db.sortDir == "-"][db.seperateOwn]
|
local sortMethod = (sorters[db.sortMethod] or sorters["INDEX"])[db.sortDir == "-"][db.seperateOwn]
|
||||||
@@ -431,7 +433,7 @@ function A:UpdateHeader(header)
|
|||||||
|
|
||||||
self:ConfigureAuras(header, sortingTable, weaponPosition)
|
self:ConfigureAuras(header, sortingTable, weaponPosition)
|
||||||
while sortingTable[1] do
|
while sortingTable[1] do
|
||||||
releaseTable(wipe(sortingTable))
|
releaseTable(tremove(sortingTable))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user