fe.load_module("fade");
https://github.com/mickelson/attract/blob/master/Layouts.md#do_nut
Im really confused about what you are confused about.
Quote from: keilmillerjr on April 17, 2019, 01:46:31 PMIm really confused about what you are confused about.I think Jedione wants the module code as a part of layout.nut (not external) and he is wondering how to call a module (use its function) if its coded into layout.nut. Script won't help if I am correct in my assumption since they are also external.
Quote from: keilmillerjr on April 17, 2019, 01:46:31 PMIm really confused about what you are confused about.I think Jedione wants the module code as a part of layout.nut (not external) and he is wondering how to call a module (use its function) if its in layout.nut. Script won't help if I am correct in my assumption since they are also external.
// Modules fe.do_nut(fe.script_dir + "modules/fade.nut" );
Code: [Select] // Modules fe.do_nut(fe.script_dir + "modules/fade.nut" );If you have a subfolder "modules" in your layout folder and put the module in question in that subfolder. Or you can put the modules in the main layout folder and just delete the "modules/" part.