config inv size

This commit is contained in:
Emojigit 2021-12-06 21:14:22 +08:00
parent e4fdfa60bf
commit 6fe0ac1221
No known key found for this signature in database
GPG Key ID: 2443E5F619026B90
2 changed files with 8 additions and 2 deletions

View File

@ -10,8 +10,8 @@ i3 = {
http = core.request_http_api(),
MAX_FAVS = 6,
INV_SIZE = 4*9,
HOTBAR_LEN = 9,
INV_SIZE = (minetest.settings:get("i3_inv_height") or 4)*(minetest.settings:get("i3_inv_width") or 9),
HOTBAR_LEN = (minetest.settings:get("i3_inv_width") or 9),
ITEM_BTN_SIZE = 1.1,
DROP_BAG_ON_DIE = true,
MIN_FORMSPEC_VERSION = 4,

View File

@ -3,3 +3,9 @@ i3_progressive_mode (Learn crafting recipes progressively) bool false
# Regroup the items of the same type in the item list.
i3_item_compression (Regroup items of the same type) bool true
# The height of the inventory
i3_inv_height (i3 inventory height) int 4 1 4
# The width of the inventory
i3_inv_width (i3 inventory width) int 9 1 9