renamed get_fs_manage_general function to build_fs_manage_general as that describes it better

This commit is contained in:
Sokomine 2023-12-18 05:35:19 +01:00
parent 3847dda6ee
commit 922c2af88f
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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.",

View File

@ -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"..

View File

@ -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"..