From 2a49a6046c371a4ab5bcc9c54868632609674669 Mon Sep 17 00:00:00 2001 From: frto027 <602706150@qq.com> Date: Sun, 30 May 2021 14:14:12 +0800 Subject: [PATCH] add offsetX when render inline icons --- eid_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 10baf8c1..2973bbbd 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -688,7 +688,7 @@ function EID:renderString(str, position, scale, kcolor) local offsetX = 0 for i, textPart in ipairs(textPartsTable) do local strFiltered, spriteTable = EID:filterIconMarkup(textPart[1], position.X, position.Y) - EID:renderInlineIcons(spriteTable, position.X, position.Y) + EID:renderInlineIcons(spriteTable, position.X + offsetX, position.Y) EID.font:DrawStringScaledUTF8(strFiltered, position.X + offsetX, position.Y, scale.X, scale.Y, textPart[2], 0, false) offsetX = offsetX + textPart[3] end