Release Candidate 2

This commit is contained in:
Tercio Jose
2022-11-18 22:39:39 -03:00
parent 1c8dfb3ab7
commit fa8ba5ac05
4 changed files with 18 additions and 25 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ local GetSpellInfo = GetSpellInfo
local lower = string.lower
local GetSpellBookItemInfo = GetSpellBookItemInfo
local CONST_MAX_SPELLS = 400000
local CONST_MAX_SPELLS = 450000
function DF:GetAuraByName (unit, spellName, isDebuff)
isDebuff = isDebuff and "HARMFUL|PLAYER"
@@ -862,6 +862,7 @@ function DF:CreateAuraConfigPanel (parent, name, db, change_callback, options, t
local title = DF:CreateLabel(parent, title)
title.textcolor = "silver"
title.textsize = 10
title:SetPoint("bottomleft", scroll, "topleft", 0, 2)
for i = 1, lineAmount do
+2 -2
View File
@@ -6,8 +6,8 @@
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()
_detalhes.build_counter = 10277
_detalhes.alpha_build_counter = 10277 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 10278
_detalhes.alpha_build_counter = 10278 --if this is higher than the regular counter, use it instead
_detalhes.dont_open_news = true
_detalhes.game_version = version
_detalhes.userversion = version .. " " .. _detalhes.build_counter
+11 -19
View File
@@ -30,8 +30,10 @@ local doFullAuraUpdate = function()
wipe(Details.AuraTracker.buff)
wipe(Details.AuraTracker.debuff)
local unitId = "player"
local function HandleAuraBuff(aura)
local auraInfo = C_UnitAuras.GetAuraDataByAuraInstanceID("player", aura.auraInstanceID)
local auraInfo = C_UnitAuras.GetAuraDataByAuraInstanceID(unitId, aura.auraInstanceID)
local spellId = auraInfo.spellId
local isBossAura = auraInfo.isBossAura --"] = false
@@ -58,14 +60,18 @@ local doFullAuraUpdate = function()
end
local function HandleAuraDebuff(aura)
local auraInfo = C_UnitAuras.GetAuraDataByAuraInstanceID("player", aura.auraInstanceID)
local auraInfo = C_UnitAuras.GetAuraDataByAuraInstanceID(unitId, aura.auraInstanceID)
Details.AuraTracker.debuff[aura.auraInstanceID] = auraInfo
end
local batchCount = nil
local usePackedAura = true
AuraUtil.ForEachAura("player", "HELPFUL", batchCount, HandleAuraBuff, usePackedAura)
AuraUtil.ForEachAura("player", "HARMFUL", batchCount, HandleAuraDebuff, usePackedAura)
AuraUtil.ForEachAura(unitId, "HELPFUL", batchCount, HandleAuraBuff, usePackedAura)
AuraUtil.ForEachAura(unitId, "HARMFUL", batchCount, HandleAuraDebuff, usePackedAura)
unitId = "pet"
AuraUtil.ForEachAura(unitId, "HELPFUL", batchCount, HandleAuraBuff, usePackedAura)
AuraUtil.ForEachAura(unitId, "HARMFUL", batchCount, HandleAuraDebuff, usePackedAura)
Details.AuraTracker.RefreshScrollData()
end
@@ -305,21 +311,7 @@ function Details.AuraTracker.RefreshScrollData()
end
function Details.AuraTracker.OnUnitAuraEvent(self, event, unit, unitAuraUpdateInfo)
if (unitAuraUpdateInfo == nil or unitAuraUpdateInfo.isFullUpdate) then
doFullAuraUpdate()
else
if (unitAuraUpdateInfo.removedAuraInstanceIDs) then
doRemovedAuraUpdate(unitAuraUpdateInfo.removedAuraInstanceIDs)
end
if (unitAuraUpdateInfo.updatedAuraInstanceIDs) then
doIncrementalAuraUpdate(unitAuraUpdateInfo.updatedAuraInstanceIDs)
end
if (unitAuraUpdateInfo.addedAuras) then
doAddedAuraUpdate(unitAuraUpdateInfo.addedAuras)
end
end
doFullAuraUpdate()
end
function Details.AuraTracker.CreateScrollLine(self, lineId)
+3 -3
View File
@@ -272,7 +272,7 @@ end
end
local cooldownsOrganized = {}
for classId = 1, 12 do --12 classes
for classId = 1, 13 do --13 classes
cooldownsOrganized[classId] = {}
end
@@ -309,7 +309,7 @@ end
Details.CooldownTracking.ProcessUnitCooldowns("player", unitCooldowns, cooldownsOrganized)
end
for classId = 1, 12 do --12 classes
for classId = 1, 13 do --13 classes
table.sort(cooldownsOrganized[classId], function(t1, t2) return t1.spellId < t2.spellId end)
end
@@ -319,7 +319,7 @@ end
local maxWidth = Details.ocd_tracker.width + 2
local cooldownFrameIndex = 1
for classId = 1, 12 do
for classId = 1, 13 do
local cooldownFrameList = cooldownsOrganized[classId]
for index, cooldownFrame in ipairs(cooldownFrameList) do
local cooldownInfo = cooldownFrame.cooldownInfo