1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Implement formspec

This commit is contained in:
darkrose 2012-07-16 02:19:38 +10:00 committed by Perttu Ahola
parent c259f7c8bd
commit 506203345b
8 changed files with 407 additions and 57 deletions

View file

@ -1125,7 +1125,7 @@ minetest.register_node("default:sign_wall", {
on_construct = function(pos)
--local n = minetest.env:get_node(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec", "hack:sign_text_input")
meta:set_string("formspec", "field[text;;${text}]")
meta:set_string("infotext", "\"\"")
end,
on_receive_fields = function(pos, formname, fields, sender)