completed get_fs_edit_option_action_text_input and get_fs_edit_option_all_custom
This commit is contained in:
parent
6775a3b567
commit
f4d348b1f1
@ -1769,7 +1769,10 @@ yl_speak_up.get_fs_edit_option_action_npc_wants = function(
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
yl_speak_up.get_fs_edit_option_action_text_input = function(pname, dialog, formspec, data, id_prefix, save_button, e)
|
-- "The player has to manually enter a password or passphrase or some other text.", -- 6
|
||||||
|
-- (only for actions)
|
||||||
|
yl_speak_up.get_fs_edit_option_action_text_input = function(
|
||||||
|
pname, dialog, formspec, data, id_prefix, save_button, e)
|
||||||
if(e) then
|
if(e) then
|
||||||
data.quest_question = e[ "a_question" ]
|
data.quest_question = e[ "a_question" ]
|
||||||
data.quest_answer = e[ "a_value" ]
|
data.quest_answer = e[ "a_value" ]
|
||||||
@ -1777,7 +1780,8 @@ yl_speak_up.get_fs_edit_option_action_text_input = function(pname, dialog, forms
|
|||||||
data.action_failure_dialog = math.max(1,
|
data.action_failure_dialog = math.max(1,
|
||||||
table.indexof(sorted_dialog_list, e[ "a_on_failure" ]))
|
table.indexof(sorted_dialog_list, e[ "a_on_failure" ]))
|
||||||
end
|
end
|
||||||
return "label[0.2,3.3;What to ask the player and which answer to expect:]"..
|
return formspec..
|
||||||
|
"label[0.2,3.3;What to ask the player and which answer to expect:]"..
|
||||||
"label[0.2,4.0;Question to show:]"..
|
"label[0.2,4.0;Question to show:]"..
|
||||||
"field[4.0,3.8;10.0,0.6;quest_question;;"..
|
"field[4.0,3.8;10.0,0.6;quest_question;;"..
|
||||||
minetest.formspec_escape(
|
minetest.formspec_escape(
|
||||||
@ -1808,7 +1812,10 @@ yl_speak_up.get_fs_edit_option_action_text_input = function(pname, dialog, forms
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
yl_speak_up.get_fs_edit_option_all_custom = function(pname, dialog, formspec, data, id_prefix, save_button, e)
|
-- "Call custom functions that are supposed to be overridden by the server.", -- 7
|
||||||
|
-- precondition: 8; action: 7; effect: 11
|
||||||
|
yl_speak_up.get_fs_edit_option_all_custom = function(
|
||||||
|
pname, dialog, formspec, data, id_prefix, save_button, e)
|
||||||
if(e) then
|
if(e) then
|
||||||
data.custom_param = e[ id_prefix.."value" ]
|
data.custom_param = e[ id_prefix.."value" ]
|
||||||
if(id_prefix == "a_") then
|
if(id_prefix == "a_") then
|
||||||
|
Loading…
Reference in New Issue
Block a user