Fixed rendering of bullet point icons being to close to the text in some cases
This commit is contained in:
1 parent
9ee7ff4db5
commit
a121303ee1
2 files changed
+4
-3
No files matched your search
+1
-1
@@ -531,7 +531,7 @@ function EID:createItemIconObject(str)
|
||||
spriteDummy:Load("gfx/eid_inline_icons.anm2", true)
|
||||
spriteDummy:ReplaceSpritesheet(1, item.GfxFileName)
|
||||
spriteDummy:LoadGraphics()
|
||||
return {"ItemIcon",0,11,7,-2,-2,spriteDummy}
|
||||
return {"ItemIcon",0,11,8,-2,-2,spriteDummy}
|
||||
end
|
||||
|
||||
-- Returns the icon for a given transformation name or ID
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user