moved formspec_helpers.lua into api folder

This commit is contained in:
Sokomine 2023-12-18 05:58:39 +01:00
parent eb6cf0f031
commit f224222d7c
3 changed files with 5 additions and 1 deletions

View File

@ -37,3 +37,7 @@ because in those cases it was better for readability and context to have them
in their respective `fs/fs_edit_<precondition|action|effect>.lua` files. in their respective `fs/fs_edit_<precondition|action|effect>.lua` files.
These functions are called in debug mode when excecuting the preconditions, These functions are called in debug mode when excecuting the preconditions,
actions and effects as well. actions and effects as well.
Another exception is `exec_actions.lua` as the respective `get_fs_*` and
`input_*` functions there are only called when an action is executed and not
via `show_fs.lua` at all.

View File

@ -181,7 +181,7 @@ yl_speak_up.reload = function(modpath, log_entry)
-- some helper functions for formatting text for a formspec talbe -- some helper functions for formatting text for a formspec talbe
dofile(modpath .. "print_as_table.lua") dofile(modpath .. "print_as_table.lua")
-- create i.e. a dropdown list of player names -- create i.e. a dropdown list of player names
dofile(modpath .. "formspec_helpers.lua") dofile(modpath .. "api/formspec_helpers.lua")
-- handle alternate text for dialogs -- handle alternate text for dialogs
dofile(modpath .. "api/api_alternate_text.lua") dofile(modpath .. "api/api_alternate_text.lua")
-- helpful for debugging the content of the created dialog structure -- helpful for debugging the content of the created dialog structure