mirror of
https://git.minetest.org/BuckarooBanzay/digibuilder.git
synced 2024-12-12 14:53:19 +01:00
22 lines
542 B
Lua
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
|