Lua: refactor script api, more doc, add button for Open Lua Scripts Folder (#1588)
* lua manager: pass down the scripts folder to the instance instead of hard coding calls to the file manager everywhere * lua: add open lua scripts folder button * lua api: change script binding so that user cannot by mistake try to sleep or yield in a non script context
This commit is contained in:
@ -51,7 +51,7 @@ namespace big
|
||||
{
|
||||
m_state.open_libraries();
|
||||
|
||||
const auto scripts_folder = g_file_manager->get_project_folder("scripts");
|
||||
const auto& scripts_folder = g_lua_manager->get_scripts_folder();
|
||||
|
||||
add_folder_to_require_available_paths(scripts_folder);
|
||||
|
||||
|
Reference in New Issue
Block a user