From 72d3819a976336d3066bb6808e99d69bb1a87f0c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 25 Jul 2017 02:00:55 +0200 Subject: [PATCH] Tweak sign formspec --- mods/ITEMS/signs/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/signs/init.lua b/mods/ITEMS/signs/init.lua index 130288981e..03c99e6a6e 100644 --- a/mods/ITEMS/signs/init.lua +++ b/mods/ITEMS/signs/init.lua @@ -179,7 +179,11 @@ local update_sign = function(pos, fields, sender) end local show_formspec = function(player, pos) - minetest.show_formspec(player:get_player_name(), "signs:set_text_"..pos.x.."_"..pos.y.."_"..pos.z, "size[6,3]textarea[0.25,0;6,1.5;text;;]button_exit[2,2;2,1;submit;Done]") + minetest.show_formspec( + player:get_player_name(), + "signs:set_text_"..pos.x.."_"..pos.y.."_"..pos.z, + "size[6,3]textarea[0.25,0.25;6,1.5;text;Edit sign text:;]label[0,1.5;Maximum line length: 15\nMaximum lines: 4]button_exit[0,2.5;6,1;submit;Done]" + ) end minetest.register_on_player_receive_fields(function(player, formname, fields)