Add unified_inventory_enable_item_names setting (#235)

Show only names settings: in case of multi-line descriptions, only the first line is shown
Shorten long descriptions: Removes all characters after x index, and add `[...]`
Max length before truncation: x for Shorten long descriptions
Notes: If Max length == 0, then item names won't be displayed
This commit is contained in:
fmmaks
2023-10-15 22:02:35 +03:00
committed by GitHub
parent 5d233a0f0a
commit 43c9b50800
3 changed files with 20 additions and 2 deletions

View File

@ -191,7 +191,8 @@ dofile(modpath.."/register.lua")
if minetest.settings:get_bool("unified_inventory_bags") ~= false then
dofile(modpath.."/bags.lua")
end
dofile(modpath.."/item_names.lua")
if minetest.settings:get_bool("unified_inventory_item_names") ~= false then
dofile(modpath.."/item_names.lua")
end
dofile(modpath.."/waypoints.lua")
dofile(modpath.."/legacy.lua") -- mod compatibility