Changes

Jump to navigation Jump to search
Line 18: Line 18:     
== Registering the pre-processor ==
 
== Registering the pre-processor ==
{{Note|This works analogous to the existing addcommand() API - but it will be treated like an fgcommand based pre-processor that gets a handle to the widgets props.Node via the cmdarg() API. The preprocessor must be implemented as part of the script portion shown below. That way, the whole thing is mutable, too. In other words, the following 5 lines of code can be used to customize widgets and create entirely new ones in scripting space.
+
{{Note|This works analogous to the existing addcommand() API - but it will be treated like an fgcommand based pre-processor that gets a handle to the widgets props.Node via the cmdarg() API. The preprocessor must be implemented as part of the script portion shown below. That way, the whole thing is mutable, too (i.e. it can add/remove and change nodes as necessary). In other words, the following 5 lines of code can be used to customize widgets and create entirely new ones in scripting space.
 
}}
 
}}
 
<syntaxhighlight lang="nasal">
 
<syntaxhighlight lang="nasal">

Navigation menu