Editor User Interface Elements

Much of the Editor user interface is defined by the core library itself, and the sub-libraries linked via CoreEditor.aslx. Look at the CoreEditor*.aslx files for examples on creating a user interface for a library.

To add an Editor User Interface for a function defined in your library, add a section to your library like this:

    <display>Enable timer #0</display>
    <create>EnableTimer ()</create>
    <add>Enable timer</add>
      <caption>Enable timer</caption>

The example above adds the “Enable timer” command to the “Timers” category:

When selected, the editor looks like this - the example above defines two controls, a label reading “Enable timer” and an expression control, which shows the “timer” dropdown:

Should be of the format “(function)YourFunctionName”

Text description of the command. “#x” represents the value of parameter x.

The category to use in the script adder

Blank version of the command created when the user selects this command in the adder

Description of the command to display in the script adder

Multiple elements specify labels and input parameters.

Within a XML tag, you must specify a controltype from the list below. If the control corresponds to a parameter (and it usually will, except for a label), you must also use an tag to specify which parameter.

The following controltypes can be used:

The following additional controltypes are also available, but are probably not much use in extension libraries: