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
@@ -7,9 +7,9 @@ local CreateFrame = CreateFrame
local GetSpellInfo = GetSpellInfo
local createAuraTabOnBreakdownWindow = function(tab, frame)
local scroll_line_amount = 22
local scroll_line_amount = 25
local scroll_width = 410
local scrollHeight = 445
local scrollHeight = 495
local scroll_line_height = 19
local text_size = 10
@@ -55,29 +55,34 @@ local createAuraTabOnBreakdownWindow = function(tab, frame)
local iconTexture = line:CreateTexture("$parentIcon", "overlay")
iconTexture:SetSize(scroll_line_height -2 , scroll_line_height - 2)
local nameLabel = line:CreateFontString("$parentName", "overlay", "GameFontNormal")
local uptimeLabel = line:CreateFontString("$parentName", "overlay", "GameFontNormal")
local applyLabel = line:CreateFontString("$parentName", "overlay", "GameFontNormal")
local refreshLabel = line:CreateFontString("$parentName", "overlay", "GameFontNormal")
local uptimeLabel = line:CreateFontString("$parentUptime", "overlay", "GameFontNormal")
local uptimePercentLabel = line:CreateFontString("$parentPercent", "overlay", "GameFontNormal")
local applyLabel = line:CreateFontString("$parentApplyed", "overlay", "GameFontNormal")
local refreshLabel = line:CreateFontString("$parentRefreshed", "overlay", "GameFontNormal")
detailsFramework:SetFontSize(nameLabel, text_size)
detailsFramework:SetFontSize(uptimeLabel, text_size)
detailsFramework:SetFontSize(uptimePercentLabel, text_size)
detailsFramework:SetFontSize(applyLabel, text_size)
detailsFramework:SetFontSize(refreshLabel, text_size)
iconTexture:SetPoint("left", line, "left", 2, 0)
nameLabel:SetPoint("left", iconTexture, "right", 2, 0)
uptimeLabel:SetPoint("left", line, "left", 186, 0)
uptimePercentLabel:SetPoint("left", line, "left", 220, 0)
applyLabel:SetPoint("left", line, "left", 276, 0)
refreshLabel:SetPoint("left", line, "left", 322, 0)
line.Icon = iconTexture
line.Name = nameLabel
line.Uptime = uptimeLabel
line.UptimePercent = uptimePercentLabel
line.Apply = applyLabel
line.Refresh = refreshLabel
nameLabel:SetJustifyH("left")
uptimeLabel:SetJustifyH("left")
uptimePercentLabel:SetJustifyH("left")
applyLabel:SetJustifyH("center")
refreshLabel:SetJustifyH("center")
@@ -102,7 +107,8 @@ local createAuraTabOnBreakdownWindow = function(tab, frame)
line.Icon:SetTexCoord(.1, .9, .1, .9)
line.Name:SetText(aura[2])
line.Uptime:SetText(detailsFramework:IntegerToTimer(aura[3]) .. "(|cFFBBAAAA" .. math.floor(aura[6]) .. "%|r)")
line.Uptime:SetText(detailsFramework:IntegerToTimer(aura[3]))
line.UptimePercent:SetText("|cFFBBAAAA" .. math.floor(aura[6]) .. "%|r")
line.Apply:SetText(aura[4])
line.Refresh:SetText(aura[5])
@@ -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()
+2 -2
View File
@@ -7066,8 +7066,8 @@ do
afterUpdate()
Details:ClearParserCache()
end,
name = DF:AddClassIconToText("Predict Augmentation Damage", false, "EVOKER"),
desc = "Predict Augmentation Damage",
name = DF:AddClassIconToText("Predict Augmentation Buffs", false, "EVOKER"),
desc = "Calculate how much the Augmentation Evoker are buffing other players",
boxfirst = true,
},