|Top Previous Next|
Plugin Description files
To define a script plugin you need to create a plugin description file. These have the extension "plugin". For example the file UPB/upb.plugin. These files are parsed using Lua but do not contain the full lua state. There are a few fields that should be in there.
The name of the plugin
The description of the plugin
This is a boolean that indicates if the backend has a component manager.
The name of the script that contains the backend code.
This is a boolean indicating if the front-end has a component manager
This is the filename of the script containing the front-end script, relative to the lua directory.
The ID of the plugin. Make sure you do not use duplicate IDs.
Front end scripts
For now we'll refer you to the pio1\plugin.js and UPB\plugin.js files as examples of how to do this. The examples use .ui files, these can be created with the QtCreator.
Back end scripts
For now we'll refer you to the pio1\plugin.lua and UPB\plugin.lua files as examples of how to do this.