itch.io is community of indie game creators and players

Devlogs

SunLikeModLib - changing icons

How to change icon of an item

1. Find an image you'd like to use. For thos example, I've edited PoisonGrenade sprite, and saved it as 256x256 png image.

2. Create item class with with load item function. Here we got LoadPotion(). And PotionEffect similar to PoisonGrenade's one. Notice the line with "result.icon = ...." This is how new sprite will be set. I've put grenade2.png image into /BepInEx/plugins/assets folder. 

3. Register your item. By the way, you can replace and edit stats of vanila items if you register under their names.

4. Put .dll files into /plugins/ folder, put images into /plugins/assets/ folder. Run the game, add item with "item FireGrenade"

Files

  • FireGrenade_src.zip 1.8 kB
    Jun 27, 2023
  • FireGrenade_mod.zip 45 kB
    Jun 27, 2023
Download Portals of Phereon BepInEx mods
Leave a comment