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:
parent
c259f7c8bd
commit
506203345b
8 changed files with 407 additions and 57 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue