Retro
1
Hello,
I would like to know what the best way to delete and add cells in a gridtable is.
I’ve got an inventory and I want to be able to add and take things out of it, but none of the ways I’ve tried seem to add and remove items properly.
Any ideas would be helpful.
Try this:
gridTable.setItems(items);
-
items
: Array of item data for each cell.
- This method will update each visible cell of grid table.
After add or remove item in items
Retro
3
That’s great thanks - turned out I needed to put a function in there (getItems()) rather than just using the player.inventory list.