Using item shape grids for everything

WillyG99

Member
Hi!

I have the player inventory as item shape grid, i wanna do the same for storage, looting, shops etc. Kinda like in escape from tarkov, i have tried converting the normal grid inventory to item shape inventory but can't figure it out.

What's the process for doing this?
 
The Inventory Grid and the ItemShapeGrid are both ItemViewSlotContainers but an ItemShapeGrid is not an InventoryGrid.
So you cannnot always simply replace it.

Certain menus only work with InventoryGrids so you might find that you will need to make some custom menus to allow you to use ItemShape Grids everywhere. Some are simply not compatible for design reasons, others might just be an oversight on our end.

A good way to start making menus is by copy pasting the code for a menu and then replacing the parts you need to change.

On my end I will add to my TODO to investigate how we could make this easier. But unfortunatly I think it would cause breaking changes so it might not make it until a big update.
 
Top