mirror of
https://github.com/minetest-mods/craftguide.git
synced 2025-06-28 14:16:16 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
251a8b1bc9 | |||
4dd40e06f5 | |||
f9f9988868 | |||
dcb479dc44 | |||
82bb95387e |
19
init.lua
19
init.lua
@ -892,17 +892,7 @@ local function get_grid_fs(data, fs, rcp, spacing)
|
||||
end
|
||||
|
||||
local function get_panels(data, fs)
|
||||
local start_y
|
||||
|
||||
if data.fs_version >= 3 then
|
||||
if sfinv_only then
|
||||
start_y = 0.33
|
||||
else
|
||||
start_y = 0
|
||||
end
|
||||
else
|
||||
start_y = 0.33
|
||||
end
|
||||
local start_y = data.fs_version >= 3 and (sfinv_only and 0.33 or 0) or 0.33
|
||||
|
||||
local panels = {
|
||||
{dat = data.usages or {}, height = 3.5},
|
||||
@ -925,7 +915,7 @@ local function get_panels(data, fs)
|
||||
fs[#fs + 1] = fmt("background9[8.1,%f;6.6,%f;%s;false;%d]",
|
||||
-0.2 + spacing, v.height, PNG.bg_full, 10)
|
||||
|
||||
if data.fs_version >= 3 and k ~= "favs" then
|
||||
if data.fs_version >= 3 and k == 2 then
|
||||
local fav = is_fav(data)
|
||||
local nfavs = #data.favs
|
||||
|
||||
@ -1624,7 +1614,8 @@ local function fields(player, _f)
|
||||
end
|
||||
|
||||
local recipes, usages = get_recipes(item, data, player)
|
||||
if not recipes and not usages then return end
|
||||
if not recipes and not usages then return end
|
||||
if data.show_usages and not usages then return end
|
||||
|
||||
data.query_item = item
|
||||
data.recipes = recipes
|
||||
@ -1982,7 +1973,7 @@ if progressive_mode then
|
||||
hud_elem_type = "text",
|
||||
position = {x = 0.84, y = 1.04},
|
||||
alignment = {x = 1, y = 1},
|
||||
number = 0xfff,
|
||||
number = 0xffffff,
|
||||
text = "",
|
||||
},
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 916 B After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 3.4 KiB |
Reference in New Issue
Block a user