mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Add InventoryList width property & allow custom crafting grids.
This commit is contained in:
committed by
Perttu Ahola
parent
43ebec2be1
commit
6a16075912
@@ -45,7 +45,8 @@ Player::Player(IGameDef *gamedef):
|
||||
updateName("<not set>");
|
||||
inventory.clear();
|
||||
inventory.addList("main", PLAYER_INVENTORY_SIZE);
|
||||
inventory.addList("craft", 9);
|
||||
InventoryList *craft = inventory.addList("craft", 9);
|
||||
craft->setWidth(3);
|
||||
inventory.addList("craftpreview", 1);
|
||||
inventory.addList("craftresult", 1);
|
||||
|
||||
|
Reference in New Issue
Block a user