I'm trying to add a new item (a journal to be specific) in DS that changes image based on which page it is in, I've registered both images in modmain.lua:
RegisterInventoryItemAtlas("images/wilson_journal.xml", "wilson_journal.tex") RegisterInventoryItemAtlas("images/wilson_journal_open.xml", "wilson_journal_open.tex")
And on the prefab file of the new item I use:
inst.components.inventoryitem.atlasname = "images/wilson_journal_open.xml" inst.components.inventoryitem:ChangeImageName("wilson_journal_open")
to change the image based on which page it is on, it works perfectly and placing it on bookshelfs work correctly, but drawing the new icon with a Feather Pencil on a Mini Sign will make it be invisible and will only show up if you dig it up and replant it. I don't know what's causing this issue, but I hope it gets addressed. I've posted two images below:
Image 1: the new item was drawn using feather pencil while the book was open:
Image 2: I dig up the mini sign of the new item and replanted it and now it shows up:
1. Create a new item that has 2 inventory images and switches between them using inst.components.inventoryitem.atlasname = "images/INV_ITEM_NAME_2.xml" and inst.components.inventoryitem:ChangeImageName("INV_ITEM_NAME_2")
2. Draw the new item on a mini sign and see that it is invisible,
3. Dig it up and replant it
4. The inventoryimage shows up now.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now