Here is the PR: https://github.com/minetest/minetest_game/pull/1179
You can download minetest_game with sfinv here: https://github.com/rubenwardy/minetest_ ... /sfinv.zip
- Code: Select all
sfinv.register_page("mymod:crafting2", {
title = "Crafting2",
get = function(self, player, context, vars)
return sfinv.make_formspec(player, context, vars, [[
list[current_player;craft;1.75,0.5;3,3;]
list[current_player;craftpreview;5.75,1.5;1,1;]
image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]
listring[current_player;main]
listring[current_player;craft]
image[0,4.75;1,1;gui_hb_bg.png]
image[1,4.75;1,1;gui_hb_bg.png]
image[2,4.75;1,1;gui_hb_bg.png]
image[3,4.75;1,1;gui_hb_bg.png]
image[4,4.75;1,1;gui_hb_bg.png]
image[5,4.75;1,1;gui_hb_bg.png]
image[6,4.75;1,1;gui_hb_bg.png]
image[7,4.75;1,1;gui_hb_bg.png]
]], true)
end,
on_player_receive_fields = function(self, player, context, fields)
print(dump(fields))
end
})
