Ulysses

General => Developers Corner => Topic started by: JamminR on October 06, 2011, 07:28:37 PM

Title: How do I make my code a module for ULX?
Post by: JamminR on October 06, 2011, 07:28:37 PM
A concerned citizen writes the following in private message; I share with all for all to learn.
Quote from: Some Concerned Citizen
Hey, I'm trying to make some simple addons for ULX, but I'm not sure about something.
When I have the lua files in an addon format, they won't be registered into ULX. But when I have them directly inside the "ULX/lua/ulx/modules/sh" folder, they are registered.
How can i still have them in an addon format, but still have them registered?

For a task such as this, you place your own code files into a folder structure like below.
<Your_addon_name>/lua/ulx/modules/sh

When ULX loads, it should also see your module.