20,741
edits
No edit summary |
No edit summary |
||
| Line 22: | Line 22: | ||
|} | |} | ||
{{Note|This is work in progress - the idea is to identify required building blocks to easily specify most functionality in a generic fashion, without requiring a ton of custom Nasal code. The Nasal/Canvas data structures will be transparently created and compiled for each MFD. Each MFD consists of an arbitrary number of buttons, modes and pages. Each MFD can be instantiated multiple times, and each MFD is designed to be aircraft/instrument agnostic, i.e. also works in a conventional Canvas dialog. Buttons can trigger and switch between modes, and modes may have pages (conventionally implemented through a single SVG file). }} | |||
<syntaxhighlight lang="xml"> | |||
<PropertyList> | |||
<MFD> | |||
<name>myMFD</name> | |||
<resolution>320x240</resolution> | |||
<buttons> | |||
<button> | |||
</button> | |||
</buttons> | |||
<modes> | |||
<mode> | |||
</mode> | |||
</modes> | |||
<pages> | |||
<page> | |||
<name>panel-page</name> | |||
<svg-filename>panels.svg</svg-filename> | |||
<nasal></nasal> | |||
</page> | |||
</pages> | |||
</MFD> | |||
</PropertyList> | |||
</syntaxhighlight> | |||