Jump to content

Inventory Items - Drawing in the Inventory Pane


johndough

Recommended Posts

I'm trying to mark certain items as infected, and I want to do this graphically by, say, making the background where that item is drawn in the inventory a different color(same as what is currently done with refrigerated food).

 

I've explored a couple of options so far. One is to do drawing calls in OnPostUIDraw on the position the particular item is currently drawn. The problem with this is that this position isn't stored anywhere - it's calculated every time the UI is drawn, and this calculation is fairly complex, depending on how the items are sorted etc. So I scratched that.

 

The second option I explored was simply to draw on the texture of the item I want to change, but that isn't possible, afaict. And I'm not sure how I would store the old texture either.

 

So, anyone got any ideas/experience with this...?

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
×
×
  • Create New...