149
edits
Line 183: | Line 183: | ||
Obviously, additional logic can be included in the binding if you want the autostart menu to toggle between autostart and shutdown. | Obviously, additional logic can be included in the binding if you want the autostart menu to toggle between autostart and shutdown. | ||
==== Fine tuning checklist bindings ==== | |||
Sometimes, a checklist binding will do something like display a dialog, e.g. fuel and payload dialog. It would be irritating to the pilot if these things happened during automated execution. These bindings can make use of the <code>sim/checklists/auto/active</code> property, which will be <tt>true</tt> when the checklist binding is being run by the autochecklist script and <tt>false</tt> otherwise. | Sometimes, a checklist binding will do something like display a dialog, e.g. fuel and payload dialog. It would be irritating to the pilot if these things happened during automated execution. These bindings can make use of the <code>sim/checklists/auto/active</code> property, which will be <tt>true</tt> when the checklist binding is being run by the autochecklist script and <tt>false</tt> otherwise. | ||
<syntaxhighlight lang="xml"> | |||
<binding> | |||
<command>nasal</command> | |||
<script> | |||
var auto = getprop("sim/checklists/auto/active"); | |||
if (!auto) gui.showWeightDialog(); | |||
</script> | |||
</binding> | |||
</syntaxhighlight> | |||
==== Expedited checklists ==== | ==== Expedited checklists ==== |
edits