Fixed rendering of bullet point icons being to close to the text in some cases

This commit is contained in:
Wofsauge committed 2021-06-04 21:21:42 +02:00
1 parent 9ee7ff4db5
commit a121303ee1
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -339,9 +339,10 @@ function EID:printBulletPoints(description, renderPos)
local bpIcon = EID:handleBulletpointIcon(lineToPrint)
if EID:getIcon(bpIcon) ~= EID.InlineIcons["ERROR"] then
lineToPrint = string.gsub(lineToPrint, bpIcon .. " ", "")
textColor = EID:renderString(bpIcon, renderPos + Vector(-3 * EID.Config["Scale"], 0), textScale , textColor)
else
textColor = EID:renderString(bpIcon, renderPos, textScale , textColor)
end
textColor = EID:renderString(bpIcon, renderPos, textScale , textColor)
end
textColor = EID:renderString(lineToPrint, renderPos + Vector(12 * EID.Config["Scale"], 0), textScale, textColor)
renderPos.Y = renderPos.Y + EID.lineHeight * EID.Config["Scale"]