digibuilder/formspec.lua
2020-06-14 20:14:52 +02:00

22 lines
542 B
Lua

function digibuilder.update_formspec(meta)
local formspec =
"size[8,9;]" ..
-- main inventory
"list[context;main;0,3.25;8,1;]" ..
-- player inventory
"list[current_player;main;0,4.5;8,4;]" ..
-- digiline channel
"field[4.3,9;3.2,1;digiline_channel;Digiline channel;" .. (meta:get_string("channel") or "") .. "]" ..
"button_exit[7,8.7;1,1;set_digiline_channel;Set]" ..
-- listring stuff
"listring[context;main]" ..
"listring[current_player;main]"
meta:set_string("formspec", formspec)
end