Fixed calculation of icon position with extreme sprite offset values

This commit is contained in:
Wofsauge committed 2021-03-06 17:19:45 +01:00
1 parent 283bc8a21f
commit e62f3651b5
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -523,7 +523,7 @@ function EID:renderInlineIcons(spriteTable, posX, posY)
else
spriteObj:Update()
end
EID:renderIcon(spriteObj, posX + sprite[2] + Xoffset, posY + Yoffset)
EID:renderIcon(spriteObj, posX + sprite[2] + Xoffset * EID.Config["Scale"], posY + Yoffset * EID.Config["Scale"])
end
end
+1 -1
View File
@@ -190,7 +190,7 @@ function EID:printDescription(desc)
end
EID:renderString(
curName,
renderPos + (Vector(offsetX, -4) * EID.Config["Scale"]),
renderPos + (Vector(offsetX, -3) * EID.Config["Scale"]),
textScale,
EID:getNameColor()
)
+1 -1
View File
@@ -76,7 +76,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
[img]https://i.imgur.com/P6a8043.png[/img] [url=https://github.com/wofsauge/External-Item-Descriptions]Any Problems? Visit this project on GitHub[/url]</description>
<version>3.20</version>
<version>3.22</version>
<visibility>Public</visibility>
<tag id="Lua"/>
<tag id="Items"/>