From 43b20b317e0b77cee115850264e458b2841baec4 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 19 Oct 2021 05:15:49 +0200 Subject: [PATCH] Add Troubleshooting to README --- README.md | 9 +++++++-- etc/gui.lua | 4 ++-- init.lua | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 408c35b..409dfed 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ #### **`i3`** is a next-generation inventory for Minetest. -This inventory offers a slick, modern UI made with the latest technologies of the Minetest engine. +This mod features a modern, powerful inventory menu with a good user experience. **`i3`** provides a rich [**API**](https://github.com/minetest-mods/i3/blob/master/API.md) for mod developers who want to extend it. This mod requires **Minetest 5.4+** @@ -37,11 +37,16 @@ To use this mod in the best conditions: - Use a HiDPI widescreen display - Use the default Freetype font style +#### Troubleshooting + +If the inventory's font size is too big on certain setups (namely Windows 10/11 or 144 DPI display), you should lower the +value of the setting `display_density_factor` in your `minetest.conf`. Note that the change is applied after restart. + #### Notes `i3` uses a larger inventory than the usual inventories in Minetest games. Thus, most chests will be unadapted to this inventory size. -The `i3` inventory is 9 slots wide by default (without backpack), such as in Minecraft. +The `i3` inventory is 9 slots wide by default (without backpack), such as Minecraft. Report any bug on the [**Bug Tracker**](https://github.com/minetest-mods/i3/issues). diff --git a/etc/gui.lua b/etc/gui.lua index 0c23a22..b5d5ae8 100644 --- a/etc/gui.lua +++ b/etc/gui.lua @@ -20,8 +20,8 @@ local min, max, floor, ceil = math.min, math.max, math.floor, math.ceil local clr, ESC, check_privs, translate = core.colorize, core.formspec_escape, core.check_player_privs, core.get_translated_string -local model_aliases = loadfile(modpath .. "/etc/model_aliases.lua")() -local PNG, styles, fs_elements = loadfile(modpath .. "/etc/styles.lua")() +local model_aliases = dofile(modpath .. "/etc/model_aliases.lua") +local PNG, styles, fs_elements = dofile(modpath .. "/etc/styles.lua") local _, _, is_group, extract_groups, item_has_groups = unpack(dofile(modpath .. "/etc/common.lua").progressive) diff --git a/init.lua b/init.lua index dc7f9c3..bc5e3d3 100644 --- a/init.lua +++ b/init.lua @@ -49,8 +49,8 @@ i3.S = core.get_translator "i3" local S, slz, dslz = i3.S, core.serialize, core.deserialize i3.data = dslz(storage:get_string "data") or {} -i3.compress_groups, i3.compressed = loadfile(modpath .. "/etc/compress.lua")() -i3.group_stereotypes, i3.group_names = loadfile(modpath .. "/etc/groups.lua")() +i3.compress_groups, i3.compressed = dofile(modpath .. "/etc/compress.lua") +i3.group_stereotypes, i3.group_names = dofile(modpath .. "/etc/groups.lua") local is_str, show_item, reset_compression = unpack(dofile(modpath .. "/etc/common.lua").init) local groups_to_items, _, compressible, true_str, is_fav = unpack(dofile(modpath .. "/etc/common.lua").gui)