Jump to content

How do I get inst.inv_image_bg to work? (SOLVED)


Recommended Posts

I am trying to make my own crockpot dishes be compatible with spice, I can't seem to get their images to show up. Does anybody know how to get this to work?

for reference see the updated preparedfoods.lua from the recent update

preparedfoods.lua

EDIT:
 

--This works
inst.inv_image_bg = { 
  image = (data.basename or data.name)..".tex", --"path doesn't need folder path but needs .tex"
  atlas = "images/inventoryimages/"..(data.basename or data.name)..".xml", --"path needs folder path"
}

 

Edited by IronHunter
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...