completed get_fs_edit_option_effect_chat_all

This commit is contained in:
Sokomine 2021-07-02 17:36:36 +02:00
parent 166499c753
commit 26d05f3262

View File

@ -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(