Canvas ND framework: Difference between revisions

Jump to navigation Jump to search
Remove spaces
(→‎Cockpit switches: add missing switches)
(Remove spaces)
Line 198: Line 198:


<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
{
{
                                id:'planArcs',
id:'planArcs',
                                impl: {
impl: {
                                        init: func(nd,symbol) {},
  init: func(nd,symbol) {},
                                        predicate: func(nd) { nd.in_mode('toggle_display_mode', ['PLAN']) },
  predicate: func(nd) { nd.in_mode('toggle_display_mode', ['PLAN']) },
                                        is_true: func(nd) { nd.symbols.planArcs.show() },
  is_true: func(nd) { nd.symbols.planArcs.show() },
                                        is_false: func(nd) { nd.symbols.planArcs.hide() },
  is_false: func(nd) { nd.symbols.planArcs.hide() },
                                },
  },
  },
},
</syntaxhighlight>
</syntaxhighlight>


Navigation menu