Fixed Color Reset Markup not working correctly when a linebreak is inbetween a color definition and the Color Reset markup

This commit is contained in:
Wofsauge committed 2022-01-15 20:09:08 +01:00
1 parent 71979b2616
commit d9ade75c00
5 files changed
+15 -16

No files matched your search

-1
View File
@@ -732,7 +732,6 @@ end
-- Returns the last used KColor
function EID:renderString(str, position, scale, kcolor)
str = EID:replaceShortMarkupStrings(str)
EID.LastRenderCallColor = EID:copyKColor(kcolor) -- Save last Color for eventual Color Reset call
local textPartsTable = EID:filterColorMarkup(str, kcolor)
local offsetX = 0
for i, textPart in ipairs(textPartsTable) do