Adding Pill colors and Card front icons - wofsauge/External-Item-Descriptions GitHub Wiki

Adding Card front icons card1

To add Card front icons, a new icon object which has the same ID as your Card needs to be added.

It is advised that the animation or frame of the referenced sprite is at scale: XScale="50" YScale="50". This allows for less space and better quality.

Example:

local mySprite = Sprite()
mySprite:Load("gfx/eid_inline_icons.anm2", true)
local myCardID = Isaac.GetCardIdByName ("My new Card")
EID:addIcon("Card"..myCardID, "myNewCard", -1, 9, 9, -1, 0, mySprite)

Adding Pillcolor Icons pill1

Pill colors are unrelated to actual Pill effects. As long as you don't add new Pill colors, you don't need to do this!

The same pre-requirements are needed to add new Pill colors, too.

Example:

local mySprite = Sprite()
mySprite:Load("gfx/eid_inline_icons.anm2", true)
local myNewPillColorSubType = 14  -- put your Subtype here
EID:addIcon("Pill"..myNewPillColorSubType , "myNewPillcolor", -1, 9, 9, -1, 0, mySprite)