diff --git a/formspec_helpers.lua b/formspec_helpers.lua index a20f7f3..d85815f 100644 --- a/formspec_helpers.lua +++ b/formspec_helpers.lua @@ -193,7 +193,7 @@ end -- create new entries, delete entries and select entries from a dropdown menu; -- returns the currently selected entry or nil (=create new entry) -- Note: Designed for a formspec of size "size[18,12]" -yl_speak_up.get_fs_manage_general = function(player, param, +yl_speak_up.build_fs_manage_general = function(player, param, formspec, list_of_entries, text_add_new, tooltip_add_new, what_is_the_list_about, diff --git a/fs/fs_manage_quest_steps.lua b/fs/fs_manage_quest_steps.lua index 3ed5a95..8943391 100644 --- a/fs/fs_manage_quest_steps.lua +++ b/fs/fs_manage_quest_steps.lua @@ -150,7 +150,7 @@ yl_speak_up.get_fs_manage_quest_steps = function(player, param) "label[0.2,1.2;A quest step is a single thing a player may do in a quest - ".. "like talking to an NPC.\n".. "Usually not all quest steps can be done/solved at all times.]") - local selected = yl_speak_up.get_fs_manage_general(player, param, + local selected = yl_speak_up.build_fs_manage_general(player, param, formspec, quest_step_list, "Create quest step", "Create a new quest step for this quest.", diff --git a/fs/fs_manage_quests.lua b/fs/fs_manage_quests.lua index ccb401a..3de1a02 100644 --- a/fs/fs_manage_quests.lua +++ b/fs/fs_manage_quests.lua @@ -92,7 +92,7 @@ yl_speak_up.get_fs_manage_quests = function(player, param) "Progress for each player is stored in a variable. The name of ".. "that variable cannot be changed after creation.]") -- if(true) then return formspec[1] end -- TODO: temporally disabled for YL - local selected = yl_speak_up.get_fs_manage_general(player, param, + local selected = yl_speak_up.build_fs_manage_general(player, param, formspec, quest_list, "Create quest", "Create a new varialbe with the name\n".. diff --git a/fs/fs_manage_variables.lua b/fs/fs_manage_variables.lua index d808263..21aeefd 100644 --- a/fs/fs_manage_variables.lua +++ b/fs/fs_manage_variables.lua @@ -308,7 +308,7 @@ yl_speak_up.get_fs_manage_variables = function(player, param) "player who interacts with the NPC.\n".. "You can grant read and write access to other players for your ".. "variables so that they can also use them as well.]") - local selected = yl_speak_up.get_fs_manage_general(player, param.var_name, + local selected = yl_speak_up.build_fs_manage_general(player, param.var_name, formspec, var_list, "Create variable", "Create a new varialbe with the name\n"..