mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-23 22:10:19 +01:00
Tweak
This commit is contained in:
parent
b2b43fcf80
commit
6156dd55ad
2
init.lua
2
init.lua
@ -1154,7 +1154,7 @@ local function get_rcp_lbl(fs, data, panel, spacing, rn, is_recipe)
|
||||
|
||||
local _lbl = translate(data.lang_code, lbl)
|
||||
local lbl_len = #_lbl:gsub("[\128-\191]", "") -- Count chars, not bytes in UTF-8 strings
|
||||
local shift = min(0.9, abs(13 - max(13, lbl_len)) * 0.1)
|
||||
local shift = min(0.9, abs(12 - max(12, lbl_len)) * 0.1)
|
||||
|
||||
fs[#fs + 1] = FMT("label", 1,
|
||||
XOFFSET + (sfinv_only and 2.3 or 1.6) - shift,
|
||||
|
Loading…
Reference in New Issue
Block a user