Canvas glass cockpit efforts: Difference between revisions

Jump to navigation Jump to search
m
→‎Files: replace the stub with something that actually works now (still just experimenting & prototyping ...)
No edit summary
m (→‎Files: replace the stub with something that actually works now (still just experimenting & prototyping ...))
Line 52: Line 52:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<?xml version="1.0"?>


<!-- see: http://wiki.flightgear.org/Canvas_Glass_Cockpit_Efforts  -->
<PropertyList>
<PropertyList>
<MFD>
<name>Garmin GPSMap196</name>
  <version>1.0</version>
<description></description>
  <name>myMFD</name>
<version></version>
  <description></description>
<developers></developers>
  <debug>1</debug>
  <resolution>320x240</resolution>


<buttons>
<debug-mode type="bool">0</debug-mode>


  <button>
<!-- screen dimensions -->
  <name></name>
<size-x>320</size-x>
  <property></property>
<size-y>160</size-y>
  </button>


...
<!-- skin setup for the GUI dialog, skin and event handling -->
</buttons>
<skin>
<!-- dialog dimensions -->
<width>1024</width>
<height>512</height>
<!-- dialog title -->
<title>GPSMap196 MFD demo</title>


<!-- TODO: support SGCondition here -->
<!-- the background image we're going to use -->
<modes>
<background-image>Aircraft/Instruments-3d/GPSmap196/widget/gpsmap196-widget.png</background-image>
  <mode>
  </mode>
</modes>


<pages>
<!-- setting up all buttons for the dialog -->
  <page>
<buttons>
  <name>panel-page</name>
<svg-filename>Aircraft/Instruments-3d/GPSmap196/widget/gpsmap196-widget.svg</svg-filename>
  <svg-filename>panels.svg</svg-filename>
<button>
  <nasal></nasal>
<name>gps196.widget.button.power</name> <!-- svg element ID -->
  </page>
<property>button-power</property> <!-- relative property -->
</pages>
<tooltip>switch device on/off</tooltip> <!-- mouseover tooltip -->
</button>
 
<button>
<name>gps196.widget.button.quit</name> <!-- svg element ID -->
<property>button-quit</property> <!-- relative property -->
<tooltip>quit</tooltip> <!-- mouseover tooltip -->
</button>
</buttons>
 
 
<!-- the embedded canvas serving as the screen -->
<screen>
<size>
<x>563</x>
<y>359</y>
</size>
 
<translation>
<x>87</x>
<y>53</y>
</translation>
</screen>
</skin>
 
<!--this implements individual MFD pages -->
<pages>
<page>
<name>test</name>
<type>svg</type>
<svg-filename>foo.svg</svg-filename>
<elements>
</elements>
</page>
 
<page>
<name>map-page</name>
<type>map</type>
<layers>
<layer>
<name>FIX</name>
</layer>
</layers>
</page>
 
</pages>


</MFD>
</PropertyList>
</PropertyList>
</syntaxhighlight>
</syntaxhighlight>

Navigation menu