forked from Sokomine/yl_speak_up
completed get_fs_edit_option_effect_chat_all
This commit is contained in:
parent
166499c753
commit
26d05f3262
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user