When writing a (different) value to slots_per_row, the element flickers for a frame, and then goes back to as it was before.
Code: Select all
/c inv = game.player.gui.screen.add{type = "inventory"}
/c inv.inventory = game.player.get_inventory(1)
/c inv.slots_per_row = 1

