Real Time DPS, ten years old

This commit is contained in:
Tercio Jose
2023-07-13 22:02:10 -03:00
parent 9a49918a9d
commit 7a0e045308
12 changed files with 229 additions and 256 deletions
@@ -119,10 +119,12 @@ function breakdownWindowPlayerList.CreatePlayerListFrame()
local playerObject = data[index]
if (playerObject) then
local line = self:GetLine(i)
line.playerObject = playerObject
line.combatObject = combatObject
line.index = index
line:UpdateLine(topResult, encounterId, difficultyId)
if (line) then
line.playerObject = playerObject
line.combatObject = combatObject
line.index = index
line:UpdateLine(topResult, encounterId, difficultyId)
end
end
end
end
@@ -472,7 +474,7 @@ function breakdownWindowPlayerList.CreatePlayerListFrame()
local updatePlayerList = function()
refreshPluginButtons()
playerScroll:SetNumFramesShown(math.floor(playerScroll:GetHeight() / player_line_height))
playerScroll:SetNumFramesShown(math.floor(playerScroll:GetHeight() / player_line_height)) --looks like it is not updating the 'totalLines' at the refresh function
---@type actor[]
local playerList = breakdownWindowPlayerList.BuildPlayerList()