2001-12-12 14:20:38 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Default DME instrument.
|
|
|
|
|
|
|
|
Started summer 2000 by David Megginson, david@megginson.com.
|
|
|
|
|
|
|
|
This is an instrument configuration file for the open-source flight
|
|
|
|
simulator FlightGear (www.flightgear.org). The file is an XML-encoded
|
|
|
|
FlightGear property list defining the instrument's layers and actions.
|
|
|
|
|
|
|
|
Each instrument is composed of layers stacked on top of each other.
|
|
|
|
A layer may be a texture (with transparent parts to show the layers
|
|
|
|
underneath), text, or a special layer that switches between two
|
|
|
|
others (say, to turn an indicator light on or off). Each layer can
|
|
|
|
move independently in proportion to a property value, and text
|
|
|
|
can be generated from property values as well: all of the layer's
|
|
|
|
movements are defined as transformations.
|
|
|
|
|
|
|
|
Actions are hotspots on the instrument that will respond to a mouse
|
|
|
|
click. Actions always modify the values of properties, either by
|
|
|
|
adjusting them, toggling them, or swaping them with other
|
|
|
|
properties' values.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>DME</name>
|
|
|
|
<w-base>128</w-base>
|
|
|
|
<h-base>64</h-base>
|
|
|
|
|
|
|
|
<layers>
|
|
|
|
|
|
|
|
<layer>
|
|
|
|
<name>background</name>
|
|
|
|
<texture>
|
|
|
|
<path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
|
|
|
|
<x1>0.0</x1>
|
|
|
|
<x2>0.49609375</x2>
|
|
|
|
<y1>0.0</y1>
|
|
|
|
<y2>0.23828125</y2>
|
|
|
|
</texture>
|
|
|
|
</layer>
|
|
|
|
|
|
|
|
<layer>
|
|
|
|
<name>distance to station</name>
|
|
|
|
<type>switch</type>
|
|
|
|
<property>/radios/dme/in-range</property>
|
|
|
|
<w>128</w>
|
|
|
|
<h>64</h>
|
|
|
|
<layer>
|
|
|
|
<name>display</name>
|
|
|
|
<type>text</type>
|
2002-02-20 04:07:56 +00:00
|
|
|
<font>led</font>
|
2002-11-02 00:23:46 +00:00
|
|
|
<point-size>6</point-size>
|
2001-12-12 14:20:38 +00:00
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<chunks>
|
|
|
|
<chunk>
|
|
|
|
<type>number-value</type>
|
|
|
|
<property>/radios/dme/distance-nm</property>
|
|
|
|
<format>%5.1f</format>
|
|
|
|
</chunk>
|
|
|
|
</chunks>
|
|
|
|
</layer>
|
|
|
|
<layer>
|
|
|
|
<name>display</name>
|
|
|
|
<type>text</type>
|
2002-02-20 04:07:56 +00:00
|
|
|
<font>led</font>
|
2002-11-02 00:23:46 +00:00
|
|
|
<point-size>6</point-size>
|
2001-12-12 14:20:38 +00:00
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<chunks>
|
|
|
|
<chunk>
|
|
|
|
<type>literal</type>
|
|
|
|
<text>---.--</text>
|
|
|
|
</chunk>
|
|
|
|
</chunks>
|
|
|
|
</layer>
|
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>x-shift</type>
|
2002-11-02 00:23:46 +00:00
|
|
|
<offset>-50</offset>
|
2001-12-12 14:20:38 +00:00
|
|
|
</transformation>
|
|
|
|
<transformation>
|
|
|
|
<type>y-shift</type>
|
2002-11-02 00:23:46 +00:00
|
|
|
<offset>11</offset>
|
2001-12-12 14:20:38 +00:00
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
|
|
|
|
<layer>
|
|
|
|
<name>ground speed towards station</name>
|
|
|
|
<type>switch</type>
|
|
|
|
<property>/radios/dme/in-range</property>
|
|
|
|
<layer>
|
|
|
|
<type>text</type>
|
2002-02-20 04:07:56 +00:00
|
|
|
<font>led</font>
|
2002-11-02 00:23:46 +00:00
|
|
|
<point-size>6</point-size>
|
2001-12-12 14:20:38 +00:00
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<chunks>
|
|
|
|
<chunk>
|
|
|
|
<type>number-value</type>
|
|
|
|
<property>/radios/dme/speed-kt</property>
|
|
|
|
<format>%3.0f</format>
|
|
|
|
</chunk>
|
|
|
|
</chunks>
|
|
|
|
</layer>
|
|
|
|
<layer>
|
|
|
|
<name>display</name>
|
|
|
|
<type>text</type>
|
2002-02-20 04:07:56 +00:00
|
|
|
<font>led</font>
|
2002-11-02 00:23:46 +00:00
|
|
|
<point-size>6</point-size>
|
2001-12-12 14:20:38 +00:00
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<chunks>
|
|
|
|
<chunk>
|
|
|
|
<type>literal</type>
|
|
|
|
<text>---</text>
|
|
|
|
</chunk>
|
|
|
|
</chunks>
|
|
|
|
</layer>
|
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>y-shift</type>
|
2002-11-02 00:23:46 +00:00
|
|
|
<offset>11</offset>
|
2001-12-12 14:20:38 +00:00
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
|
|
|
|
<layer>
|
|
|
|
<name>time to station</name>
|
|
|
|
<type>switch</type>
|
|
|
|
<property>/radios/dme/in-range</property>
|
|
|
|
<layer>
|
|
|
|
<type>text</type>
|
2002-02-20 04:07:56 +00:00
|
|
|
<font>led</font>
|
2002-11-02 00:23:46 +00:00
|
|
|
<point-size>6</point-size>
|
2001-12-12 14:20:38 +00:00
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<chunks>
|
|
|
|
<chunk>
|
|
|
|
<type>number-value</type>
|
|
|
|
<property>/radios/dme/ete-min</property>
|
|
|
|
<format>%2.0f</format>
|
|
|
|
</chunk>
|
|
|
|
</chunks>
|
|
|
|
</layer>
|
|
|
|
<layer>
|
|
|
|
<name>display</name>
|
|
|
|
<type>text</type>
|
2002-02-20 04:07:56 +00:00
|
|
|
<font>led</font>
|
2002-11-02 00:23:46 +00:00
|
|
|
<point-size>6</point-size>
|
2001-12-12 14:20:38 +00:00
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.5</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<chunks>
|
|
|
|
<chunk>
|
|
|
|
<type>literal</type>
|
|
|
|
<text>--</text>
|
|
|
|
</chunk>
|
|
|
|
</chunks>
|
|
|
|
</layer>
|
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>y-shift</type>
|
2002-11-02 00:23:46 +00:00
|
|
|
<offset>11</offset>
|
2001-12-12 14:20:38 +00:00
|
|
|
</transformation>
|
|
|
|
<transformation>
|
|
|
|
<type>x-shift</type>
|
2002-11-02 00:23:46 +00:00
|
|
|
<offset>33</offset>
|
2001-12-12 14:20:38 +00:00
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
|
|
|
|
<layer>
|
|
|
|
<name>knob</name>
|
|
|
|
<texture>
|
|
|
|
<path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
|
|
|
|
<x1>0.53125</x1>
|
|
|
|
<x2>0.59765625</x2>
|
|
|
|
<y1>0.05859375</y1>
|
|
|
|
<y2>0.1484375</y2>
|
|
|
|
</texture>
|
|
|
|
<w>16</w>
|
|
|
|
<h>20</h>
|
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>y-shift</type>
|
|
|
|
<offset>-24</offset>
|
|
|
|
</transformation>
|
|
|
|
<transformation>
|
|
|
|
<type>rotation</type>
|
|
|
|
<property>/radios/dme/switch-position</property>
|
|
|
|
<min>0</min>
|
|
|
|
<max>3</max>
|
|
|
|
<scale>45</scale>
|
|
|
|
<offset>-90</offset>
|
|
|
|
</transformation>
|
|
|
|
<transformation>
|
|
|
|
<type>y-shift</type>
|
|
|
|
<offset>-4.0</offset>
|
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
|
|
|
|
</layers>
|
|
|
|
|
|
|
|
<actions>
|
|
|
|
|
|
|
|
<action>
|
|
|
|
<name>Rotate knob left</name>
|
|
|
|
<button>0</button>
|
|
|
|
<x>-32</x>
|
|
|
|
<y>-32</y>
|
|
|
|
<w>32</w>
|
|
|
|
<h>32</h>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/radios/dme/switch-position</property>
|
|
|
|
<step>-1</step>
|
|
|
|
<min>0</min>
|
|
|
|
<max>3</max>
|
|
|
|
<wrap>0</wrap>
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<action>
|
|
|
|
<name>Rotate knob right</name>
|
|
|
|
<button>0</button>
|
|
|
|
<x>0</x>
|
|
|
|
<y>-32</y>
|
|
|
|
<w>32</w>
|
|
|
|
<h>32</h>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/radios/dme/switch-position</property>
|
|
|
|
<step>1</step>
|
|
|
|
<min>0</min>
|
|
|
|
<max>3</max>
|
|
|
|
<wrap>0</wrap>
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
</actions>
|
|
|
|
|
|
|
|
</PropertyList>
|