renamed function input_fs_manage_general to more appropriate handle_input_fs_manage_general

This commit is contained in:
Sokomine 2023-12-18 05:41:41 +01:00
parent 922c2af88f
commit 067744981b
4 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@ end
-- function_input_check_fields(player, formname, fields, entry_name, list_of_entries)
-- expected return value: nil if the function found work; else entry_name
--
yl_speak_up.input_fs_manage_general = function(player, formname, fields,
yl_speak_up.handle_input_fs_manage_general = function(player, formname, fields,
what_is_the_list_about, min_length, max_length, function_add_new_entry,
list_of_entries, function_del_old_entry, function_input_check_fields)
local pname = player:get_player_name()

View File

@ -65,7 +65,7 @@ end
-- makes use of yl_speak_up.input_fs_manage_general and is thus pretty short
-- makes use of yl_speak_up.handle_input_fs_manage_general and is thus pretty short
yl_speak_up.input_fs_manage_quest_steps = function(player, formname, fields)
local pname = player:get_player_name()
@ -112,7 +112,7 @@ yl_speak_up.input_fs_manage_quest_steps = function(player, formname, fields)
end
local quest_step_list = yl_speak_up.get_sorted_quest_step_list(pname)
local res = yl_speak_up.input_fs_manage_general(player, formname, fields,
local res = yl_speak_up.handle_input_fs_manage_general(player, formname, fields,
-- what_is_the_list_about, min_length, max_length, function_add_new_entry,
"quest step", 2, 70,
yl_speak_up.input_fs_manage_quest_steps_add_new_entry,

View File

@ -41,7 +41,7 @@ yl_speak_up.fun_input_fs_manage_quests_check_fields = function(player, formname,
end
-- makes use of yl_speak_up.input_fs_manage_general and is thus pretty short
-- makes use of yl_speak_up.handle_input_fs_manage_general and is thus pretty short
yl_speak_up.input_fs_manage_quests = function(player, formname, fields)
local pname = player:get_player_name()
if(fields and fields.manage_quest_steps and fields.manage_quest_steps ~= "") then
@ -66,7 +66,7 @@ yl_speak_up.input_fs_manage_quests = function(player, formname, fields)
end
local quest_list = yl_speak_up.get_sorted_quest_list(pname)
local res = yl_speak_up.input_fs_manage_general(player, formname, fields,
local res = yl_speak_up.handle_input_fs_manage_general(player, formname, fields,
-- what_is_the_list_about, min_length, max_length, function_add_new_entry,
"quest", 2, 80,
yl_speak_up.fun_input_fs_manage_quests_add_new_entry,

View File

@ -270,7 +270,7 @@ yl_speak_up.fun_input_fs_manage_variables_check_fields = function(player, formna
end
-- makes use of yl_speak_up.input_fs_manage_general and is thus pretty short
-- makes use of yl_speak_up.handle_input_fs_manage_general and is thus pretty short
yl_speak_up.input_fs_manage_variables = function(player, formname, fields)
local pname = player:get_player_name()
local list_of_entries = yl_speak_up.get_quest_variables(pname, true)
@ -278,7 +278,7 @@ yl_speak_up.input_fs_manage_variables = function(player, formname, fields)
yl_speak_up.strip_pname_from_varlist(list_of_entries, pname)
table.sort(list_of_entries)
local res = yl_speak_up.input_fs_manage_general(player, formname, fields,
local res = yl_speak_up.handle_input_fs_manage_general(player, formname, fields,
-- what_is_the_list_about, min_length, max_length, function_add_new_entry,
"variable", 2, 30,
yl_speak_up.fun_input_fs_manage_variables_add_new_entry,