diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2017-12-28 20:22:43 +0100 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2017-12-28 20:22:43 +0100 |
commit | da3826e9684d3e012fc2bd1f3f2a6fcb2a516718 (patch) | |
tree | 952c5874f84ad4a7322e6b0027048be036761e2a | |
parent | 755fba6ce01fdd76d909e95a95d612c5d817b683 (diff) |
Adjustment of poster title size in display form.
-rw-r--r-- | signs/nodes.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/signs/nodes.lua b/signs/nodes.lua index 7a31d6b..2b8ab66 100644 --- a/signs/nodes.lua +++ b/signs/nodes.lua @@ -30,13 +30,14 @@ local function display_poster(pos, node, player) -- Title texture local titletexture = font_lib.make_multiline_texture( def.font_name, meta:get_string("display_text"), - 116, 50, def.maxlines, def.valign, def.color) + 116, 12, def.maxlines, def.valign, def.color) formspec = "size[7,9]".. - "image[0,0;8.5,4;"..titletexture.."]".. - "textarea[0.3,1;7,8;;"..minetest.colorize("#111", minetest.formspec_escape(meta:get_string("text")))..";]".. - "bgcolor[#eee]" + "background[0,0;7,9;signs_poster_formspec.png]".. + "image[0,0;8.4,1.5;"..titletexture.."]".. + "textarea[0.3,1.5;7,8;;"..minetest.colorize("#111", minetest.formspec_escape(meta:get_string("text")))..";]".. + "bgcolor[#0000]" if minetest.is_protected(pos, player:get_player_name()) then formspec = formspec.. |