Goetz Posted August 13, 2019 Share Posted August 13, 2019 (edited) vor 2 Stunden schrieb ademes: how to define a table in Lua that is available to all events? Use the main script. In the event manager, click the + sign and instead of adding an event or a modul, add a script. You can have one main script per layout and that may hold your table and other constants. And no, a table cannot be an object variable. Not yet, anyway. But Neo is considering this option. Edited August 13, 2019 by Goetz Link to comment Share on other sites More sharing options...
Neo Posted August 13, 2019 Share Posted August 13, 2019 Hi, vor 3 Stunden schrieb Goetz: You can have one main script per layout and that may hold your table and other constants. to avoid misunderstandings, you can have a "main script" per module. All scripts of all modules are finally merged together, so that a (sub)module can declare own global functions and constants. Kind regards, Neo Link to comment Share on other sites More sharing options...
ademes Posted August 13, 2019 Share Posted August 13, 2019 Hi Goetz and Neo, Thank you for explanation. I'll try this soon. André Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now