Canvas wrappers: Difference between revisions

Jump to navigation Jump to search
m
Use Nasal highlighter
m (→‎2D Instruments parser: FGPanel code is easier to convert but otherwise identical)
m (Use Nasal highlighter)
Line 90: Line 90:
I would suggest to use the specified widget's name and instantiate a little Nasal class eventually, i.e. something like (using ctor/method chaining):
I would suggest to use the specified widget's name and instantiate a little Nasal class eventually, i.e. something like (using ctor/method chaining):


<syntaxhighlight lang="php">
<syntaxhighlight lang="nasal">
  globals["widgets"].button.new().update();
  globals["widgets"].button.new().update();
</syntaxhighlight>  
</syntaxhighlight>  

Navigation menu