Add background image to signs_lib formspec

This commit is contained in:
Vanessa Ezekowitz 2014-07-14 14:45:43 -04:00
parent aa6dbf37f5
commit 316f03b95a
2 changed files with 5 additions and 1 deletions

View File

@ -389,7 +389,11 @@ end
signs_lib.construct_sign = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", "field[text;;${text}]")
meta:set_string(
"formspec",
"field[text;;${text}]"..
"size[4,2]"..
"background[-1.25,-0.5;6.5,3;bg_signs_lib.jpg]")
meta:set_string("infotext", "")
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB