Fix all issues related to new textL_offset and text_yoffset
With the new additions of Text Y Offset and the left text offset. The indexes to disable/hide were not updated properly and thus you could not edit Per Second, percent if multifontstring was enabled. And could not even see the seperator box. A lot of SetPoint calls were not properly updated with the new anchor settings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user