More fixes for text color and bar color. Early and under development report button addon to the Player Breakdown window.

This commit is contained in:
Tercio Jose
2024-02-15 17:02:29 -03:00
parent 2fd02eebb1
commit cd8266fff6
12 changed files with 98 additions and 41 deletions
+8 -3
View File
@@ -339,7 +339,12 @@ function Details:GetTextColor(instanceObject, textSide)
end
if (bUseClassColor) then
return unpack(Details.class_colors[actorObject.classe or "UNKNOW"])
local actorClass = actorObject.classe or "UNKNOW"
if (actorClass == "UNKNOW") then
return unpack(instanceObject.row_info.fixed_text_color)
else
return unpack(Details.class_colors[actorClass])
end
else
return unpack(instanceObject.row_info.fixed_text_color)
end
@@ -3286,7 +3291,7 @@ function Details:SetBarColors(bar, instance, r, g, b, a) --[[exported]] --~color
end
bar.textura:SetVertexColor(r, g, b, a)
else
r, g, b = unpack(instance.row_info.fixed_texture_color)
r, g, b, a = unpack(instance.row_info.fixed_texture_color)
bar.textura:SetVertexColor(r, g, b, a)
end
@@ -3653,7 +3658,7 @@ function damageClass.PredictedAugSpellsOnEnter(self)
--add the buff uptime into the tooltip
local allPrescienceTargets = buffUptimeTable[CONST_SPELLID_PRESCIENCE]
if (#allPrescienceTargets > 0) then
if (allPrescienceTargets and #allPrescienceTargets > 0) then
for i = 1, math.min(30, #allPrescienceTargets) do
local uptimeTable = allPrescienceTargets[i]
+10 -5
View File
@@ -3796,16 +3796,21 @@ function Details:envia_relatorio (linhas, custom)
if (combatObject) then
local combatTime = combatObject:GetCombatTime()
segmentTime = Details.gump:IntegerToTimer(combatTime or 0)
else
combatObject = self:GetCombat()
local combatTime = combatObject:GetCombatTime()
segmentTime = Details.gump:IntegerToTimer(combatTime or 0)
end
--effective ou active time
if (Details.time_type == 2 or Details.use_realtimedps) then
linhas[1] = linhas[1] .. " [" .. segmentTime .. " EF]"
else
linhas[1] = linhas[1] .. " [" .. segmentTime .. " AC]"
if (not custom) then
if (Details.time_type == 2 or Details.use_realtimedps) then
linhas[1] = linhas[1] .. " [" .. segmentTime .. " EF]"
else
linhas[1] = linhas[1] .. " [" .. segmentTime .. " AC]"
end
end
local editbox = Details.janela_report.editbox
if (editbox.focus) then --no precionou enter antes de clicar no okey
local texto = Details:trim (editbox:GetText())