This commit is contained in:
Tercio Jose
2023-03-19 20:10:47 -03:00
4 changed files with 25 additions and 25 deletions
+3 -2
View File
@@ -2474,6 +2474,7 @@ end
local maxStringLength_StringThree = 0
local profileOffsetString3 = self.fontstrings_text3_anchor
local profileOffsetString2 = self.fontstrings_text2_anchor
local profileYOffset = self.row_info.text_yoffset
Details.CacheInLineMaxDistance = Details.CacheInLineMaxDistance or {}
Details.CacheInLineMaxDistance[self:GetId()] = Details.CacheInLineMaxDistance[self:GetId()] or {[2] = profileOffsetString2, [3] = profileOffsetString3}
@@ -2514,7 +2515,7 @@ end
--update the lines
for lineId = 1, self:GetNumLinesShown() do
local thisLine = self:GetLine(lineId)
thisLine.lineText3:SetPoint("right", thisLine.statusbar, "right", -newOffset, 0)
thisLine.lineText3:SetPoint("right", thisLine.statusbar, "right", -newOffset, profileYOffset)
end
end
@@ -2535,7 +2536,7 @@ end
--update the lines
for lineId = 1, self:GetNumLinesShown() do
local thisLine = self:GetLine(lineId)
thisLine.lineText2:SetPoint("right", thisLine.statusbar, "right", -newOffset, 0)
thisLine.lineText2:SetPoint("right", thisLine.statusbar, "right", -newOffset, profileYOffset)
end
end
end
+2 -3
View File
@@ -752,10 +752,9 @@ function atributo_misc:RefreshWindow(instance, combatObject, bIsForceRefresh, bI
instance:RefreshScrollBar(total)
local whichRowLine = 1
local bIsReverse = false --debug (default false)
--if this is reverse, need to invert the values in the table which holds the deaths in the combat
if (bIsReverse) then
--if sort direction is descending, need to invert the values in the table which holds the deaths in the combat
if (instance.bars_sort_direction == 1) then
local tempTable = {}
for i = #allDeathsInTheCombat, 1, -1 do
tempTable[#tempTable+1] = allDeathsInTheCombat[i]