Add formspec textures to creative
parent
8126c8172f
commit
923a7198f7
|
@ -79,7 +79,8 @@ trash:set_size("main", 1)
|
|||
creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
|
||||
pagenum = math.floor(pagenum)
|
||||
local pagemax = math.floor((creative_inventory.creative_inventory_size-1) / (6*4) + 1)
|
||||
player:set_inventory_formspec("size[13,7.5]"..
|
||||
player:set_inventory_formspec(
|
||||
"size[13,7.5]"..
|
||||
--"image[6,0.6;1,2;player.png]"..
|
||||
"list[current_player;main;5,3.5;8,4;]"..
|
||||
"list[current_player;craft;8,0;3,3;]"..
|
||||
|
@ -89,7 +90,11 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
|
|||
"button[0.3,6.5;1.6,1;creative_prev;<<]"..
|
||||
"button[2.7,6.5;1.6,1;creative_next;>>]"..
|
||||
"label[5,1.5;Trash:]"..
|
||||
"list[detached:creative_trash;main;5,2;1,1;]")
|
||||
"list[detached:creative_trash;main;5,2;1,1;]"..
|
||||
|
||||
"background[-0.0625,-0.0625;13.125,7.625;creative_formspec_background.png]"..
|
||||
"background[0,0;13,7.5;creative_formspec_inventory.png]"
|
||||
)
|
||||
end
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
-- If in creative mode, modify player's inventory forms
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
Binary file not shown.
After Width: | Height: | Size: 645 B |
Loading…
Reference in New Issue