updated lib RaidStatus and general bug fixes; ToC Updates

This commit is contained in:
Tercio Jose
2021-07-01 18:46:46 -03:00
parent 2da8f23489
commit 07a60b42ec
15 changed files with 306 additions and 111 deletions
@@ -67,7 +67,7 @@ end
tinsert (UISpecialFrames, "Details_RaidCheck")
DetailsRaidCheck:SetPluginDescription (Loc ["STRING_RAIDCHECK_PLUGIN_DESC"])
local version = "v2.0"
local version = "v3.0.1"
local debugmode = false
--local debugmode = true
@@ -380,8 +380,9 @@ end
data = dataInOrder
local raidStatusLib = LibStub:GetLibrary("LibRaidStatus-1.0")
local playerInfo = raidStatusLib.playerInfoManager.GetPlayerInfo()
local gearInfo = raidStatusLib.gearManager.GetGearTable()
--get the information of all players
local playersInfoData = raidStatusLib.playerInfoManager.GetAllPlayersInfo()
local playersGearData = raidStatusLib.gearManager.GetAllPlayersGear()
local libRaidStatus = 0
@@ -393,7 +394,7 @@ end
local line = self:GetLine (i)
if (line) then
local thisPlayerInfo = playerInfo[playerTable.UnitNameRealm]
local thisPlayerInfo = playersInfoData[playerTable.UnitNameRealm]
if (thisPlayerInfo) then
local playerCovenantId = thisPlayerInfo.covenantId
if (playerCovenantId > 0) then
@@ -407,7 +408,7 @@ end
end
--repair status
local thisPlayerGearInfo = gearInfo[playerTable.UnitNameRealm]
local thisPlayerGearInfo = playersGearData[playerTable.UnitNameRealm]
if (thisPlayerGearInfo) then
line.RepairStatus:SetText(thisPlayerGearInfo.durability .. "%")
else
@@ -615,6 +616,7 @@ end
end)
local update_panel = function (self, elapsed)
show_panel.NextUpdate = show_panel.NextUpdate - elapsed
if (show_panel.NextUpdate > 0) then
@@ -684,9 +686,11 @@ end
local talentsTable = _detalhes:GetTalents (unitSerial)
unitClassID = ((unitClassID + 128) ^ 4) + tonumber (string.byte (unitName, 1) .. "" .. string.byte (unitName, 2))
local unitNameWithRealm = GetUnitName(unitID, true)
tinsert (PlayerData, {unitName, unitClassID,
Name = unitName,
UnitNameRealm = unitNameWithRealm,
Class = unitClass,
Serial = unitSerial,
Role = unitRole,