mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 22:03:42 +01:00
Tune fs style
This commit is contained in:
parent
5d7bb6de53
commit
c570fa2337
5
init.lua
5
init.lua
@ -827,13 +827,11 @@ local function get_info_fs(data, fs)
|
||||
end
|
||||
|
||||
for i = 1, width * rows do
|
||||
local item = rcp.items[i]
|
||||
local item = rcp.items[i] or ""
|
||||
local X = ceil((i - 1) % width - width) + XOFFSET
|
||||
local Y = ceil(i / width) + YOFFSET - min(2, rows) + spacing
|
||||
|
||||
if item or large_recipe then
|
||||
if large_recipe then
|
||||
item = item or ""
|
||||
local xof = 1 - 4 / width
|
||||
local yof = 1 - 4 / rows
|
||||
local x_y = width > rows and xof or yof
|
||||
@ -898,7 +896,6 @@ local function get_info_fs(data, fs)
|
||||
btn_size, btn_size, "craftguide_selected.png")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if large_recipe then
|
||||
fs[#fs + 1] = "style_type[item_image_button;border=false]"
|
||||
|
Loading…
Reference in New Issue
Block a user