Fixed calculation of icon position with extreme sprite offset values
This commit is contained in:
1 parent
283bc8a21f
commit
e62f3651b5
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -523,7 +523,7 @@ function EID:renderInlineIcons(spriteTable, posX, posY)
|
|||||||
else
|
else
|
||||||
spriteObj:Update()
|
spriteObj:Update()
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ function EID:printDescription(desc)
|
|||||||
end
|
end
|
||||||
EID:renderString(
|
EID:renderString(
|
||||||
curName,
|
curName,
|
||||||
renderPos + (Vector(offsetX, -4) * EID.Config["Scale"]),
|
renderPos + (Vector(offsetX, -3) * EID.Config["Scale"]),
|
||||||
textScale,
|
textScale,
|
||||||
EID:getNameColor()
|
EID:getNameColor()
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -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
|
- [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>
|
[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>
|
<visibility>Public</visibility>
|
||||||
<tag id="Lua"/>
|
<tag id="Lua"/>
|
||||||
<tag id="Items"/>
|
<tag id="Items"/>
|
||||||
|
|||||||
Reference in new issue
Block a user