Howto:Prototyping a new NavDisplay Style: Difference between revisions

Jump to navigation Jump to search
m (→‎Code: cleaning up things)
Line 362: Line 362:
-->
-->


{{Note|For testing purposes, put the following dialog into $FG_ROOT/gui/dialogs/canvas-nd.xml and use the [[Nasal Console]] to run the dialog (or extend the [[Menubar]] accordingly):
{{Note|The following code will no longer work without the changes shown above, if in doubt, see the history of this article  for the previous version. For testing purposes, put the following dialog into $FG_ROOT/gui/dialogs/canvas-nd.xml and use the [[Nasal Console]] to run the dialog (or extend the [[Menubar]] accordingly):
<syntaxhighlight lang="nasal">fgcommand('dialog-show', props.Node.new({'dialog-name':'canvas-nd'}) );</syntaxhighlight>
<syntaxhighlight lang="nasal">fgcommand('dialog-show', props.Node.new({'dialog-name':'canvas-nd'}) );</syntaxhighlight>
}}
}}

Navigation menu