forked from nalc/nalc_game
Add 4th item row to creative inventory. Align search, trash, page navigation
This commit is contained in:
@ -37,21 +37,21 @@ function sfinv.get_nav_fs(player, context, nav, current_idx)
|
||||
end
|
||||
|
||||
local theme_inv = [[
|
||||
image[0,4.7;1,1;gui_hb_bg.png]
|
||||
image[1,4.7;1,1;gui_hb_bg.png]
|
||||
image[2,4.7;1,1;gui_hb_bg.png]
|
||||
image[3,4.7;1,1;gui_hb_bg.png]
|
||||
image[4,4.7;1,1;gui_hb_bg.png]
|
||||
image[5,4.7;1,1;gui_hb_bg.png]
|
||||
image[6,4.7;1,1;gui_hb_bg.png]
|
||||
image[7,4.7;1,1;gui_hb_bg.png]
|
||||
list[current_player;main;0,4.7;8,1;]
|
||||
list[current_player;main;0,5.85;8,3;8]
|
||||
image[0,5.2;1,1;gui_hb_bg.png]
|
||||
image[1,5.2;1,1;gui_hb_bg.png]
|
||||
image[2,5.2;1,1;gui_hb_bg.png]
|
||||
image[3,5.2;1,1;gui_hb_bg.png]
|
||||
image[4,5.2;1,1;gui_hb_bg.png]
|
||||
image[5,5.2;1,1;gui_hb_bg.png]
|
||||
image[6,5.2;1,1;gui_hb_bg.png]
|
||||
image[7,5.2;1,1;gui_hb_bg.png]
|
||||
list[current_player;main;0,5.2;8,1;]
|
||||
list[current_player;main;0,6.35;8,3;8]
|
||||
]]
|
||||
|
||||
function sfinv.make_formspec(player, context, content, show_inv, size)
|
||||
local tmp = {
|
||||
size or "size[8,8.6]",
|
||||
size or "size[8,9.1]",
|
||||
sfinv.get_nav_fs(player, context, context.nav_titles, context.nav_idx),
|
||||
show_inv and theme_inv or "",
|
||||
content
|
||||
|
Reference in New Issue
Block a user