diff --git a/fs_edit_general.lua b/fs_edit_general.lua index ebe2fe2..1b8bea9 100644 --- a/fs_edit_general.lua +++ b/fs_edit_general.lua @@ -1614,13 +1614,16 @@ yl_speak_up.get_fs_edit_option_effect_on_failure = function( end -yl_speak_up.get_fs_edit_option_effect_chat_all = function(pname, dialog, formspec, data, id_prefix, save_button, e) +-- "send a chat message to all players" -- 6 +yl_speak_up.get_fs_edit_option_effect_chat_all = function( + pname, dialog, formspec, data, id_prefix, save_button, e) if(e) then data.chat_msg_text = e[ "r_value" ] end local default_text = "$NPC_NAME$ (owned by $OWNER_NAME$) announces: $PLAYER_NAME$ ".. "- example; please enter the text -" - return "label[0.2,3.3;Send the following chat message to *all* players:]".. + return formspec.. + "label[0.2,3.3;Send the following chat message to *all* players:]".. "label[0.2,4.1;Message:]".. "field[2.0,3.8;16.0,0.6;chat_msg_text;;".. minetest.formspec_escape(