2002-08-22 16:28:11 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Improved artificial horizon instrument.
|
|
|
|
Mar 20 2000
|
|
|
|
Martin Dressler dr@musicabona.cz
|
2002-08-22 16:57:36 +00:00
|
|
|
Artificial horizon from C172RG (large version)
|
2002-08-22 16:28:11 +00:00
|
|
|
GPL
|
|
|
|
_______________________________________________________________________________
|
|
|
|
|
|
|
|
Based on Default 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>
|
|
|
|
|
2002-08-22 16:57:36 +00:00
|
|
|
<name>C172RG Artifical horizon</name>
|
2002-08-22 16:28:11 +00:00
|
|
|
|
2002-08-22 16:57:36 +00:00
|
|
|
<w-base>256</w-base>
|
|
|
|
<h-base>256</h-base>
|
2002-08-22 16:28:11 +00:00
|
|
|
|
|
|
|
<layers>
|
|
|
|
<layer>
|
|
|
|
<name>background</name>
|
|
|
|
<texture>
|
2002-08-22 16:57:36 +00:00
|
|
|
<path>Aircraft/Instruments/Textures/attitude2.rgb</path>
|
2002-08-22 16:28:11 +00:00
|
|
|
<x1>0.0</x1>
|
|
|
|
<y1>0.0</y1>
|
2002-08-22 16:57:36 +00:00
|
|
|
<x2>1.0</x2>
|
|
|
|
<y2>1.0</y2>
|
2002-08-22 16:28:11 +00:00
|
|
|
</texture>
|
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>rotation</type>
|
|
|
|
<property>/orientation/roll-deg</property>
|
|
|
|
<min>-360.0</min>
|
|
|
|
<max>360.0</max>
|
|
|
|
<scale>-1</scale>
|
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
<layer>
|
|
|
|
<name>pitch</name>
|
|
|
|
<texture>
|
2002-08-22 16:57:36 +00:00
|
|
|
<path>Aircraft/Instruments/Textures/attitude3.rgb</path>
|
|
|
|
<x1>0.0</x1>
|
2002-08-22 16:28:11 +00:00
|
|
|
<y1>0.0</y1>
|
2002-08-22 16:57:36 +00:00
|
|
|
<x2>1.0</x2>
|
|
|
|
<y2>1.0</y2>
|
2002-08-22 16:28:11 +00:00
|
|
|
</texture>
|
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>rotation</type>
|
|
|
|
<property>/orientation/roll-deg</property>
|
|
|
|
<min>-360.0</min>
|
|
|
|
<max>360.0</max>
|
|
|
|
<scale>-1</scale>
|
|
|
|
</transformation>
|
|
|
|
<transformation>
|
|
|
|
<type>y-shift</type>
|
|
|
|
<property>/orientation/pitch-deg</property>
|
|
|
|
<min>-20.0</min>
|
|
|
|
<max>20.0</max>
|
2002-08-22 16:57:36 +00:00
|
|
|
<scale>-2.15</scale>
|
2002-08-22 16:28:11 +00:00
|
|
|
<offset>0</offset>
|
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
<layer>
|
|
|
|
<name>roll</name>
|
|
|
|
<texture>
|
2002-08-22 16:57:36 +00:00
|
|
|
<path>Aircraft/Instruments/Textures/attitude5.rgb</path>
|
|
|
|
<x1>0.0</x1>
|
|
|
|
<y1>0.0</y1>
|
2002-08-22 16:28:11 +00:00
|
|
|
<x2>1.0</x2>
|
|
|
|
<y2>1.0</y2>
|
|
|
|
</texture>
|
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>rotation</type>
|
|
|
|
<property>/orientation/roll-deg</property>
|
|
|
|
<min>-360.0</min>
|
|
|
|
<max>360.0</max>
|
|
|
|
<scale>-1</scale>
|
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
<layer>
|
|
|
|
<name>plane</name>
|
|
|
|
<texture>
|
2002-08-22 16:57:36 +00:00
|
|
|
<path>Aircraft/Instruments/Textures/madr-misc1.rgb</path>
|
|
|
|
<x1>0.0</x1>
|
|
|
|
<y1>0.0</y1>
|
|
|
|
<x2>0.5</x2>
|
|
|
|
<y2>0.3125</y2>
|
2002-08-22 16:28:11 +00:00
|
|
|
</texture>
|
2002-08-22 16:57:36 +00:00
|
|
|
<h>83</h>
|
|
|
|
<w>133</w>
|
2002-08-22 16:28:11 +00:00
|
|
|
<transformations>
|
|
|
|
<transformation>
|
|
|
|
<type>y-shift</type>
|
|
|
|
<property>/steam/horizon-adjust</property>
|
2002-08-22 16:57:36 +00:00
|
|
|
<offset>-32</offset>
|
2002-08-22 16:28:11 +00:00
|
|
|
</transformation>
|
|
|
|
</transformations>
|
|
|
|
</layer>
|
|
|
|
<layer>
|
|
|
|
<name>foreground</name>
|
|
|
|
<texture>
|
2002-08-22 16:57:36 +00:00
|
|
|
<path>Aircraft/Instruments/Textures/attitude1.rgb</path>
|
2002-08-22 16:28:11 +00:00
|
|
|
<x1>0.0</x1>
|
2002-08-22 16:57:36 +00:00
|
|
|
<y1>0.0</y1>
|
|
|
|
<x2>1.0</x2>
|
2002-08-22 16:28:11 +00:00
|
|
|
<y2>1.0</y2>
|
|
|
|
</texture>
|
|
|
|
</layer>
|
|
|
|
</layers>
|
|
|
|
<actions>
|
|
|
|
<action>
|
|
|
|
<name>fine lower</name>
|
|
|
|
<button>0</button>
|
2002-08-22 16:57:36 +00:00
|
|
|
<x>-22</x>
|
|
|
|
<y>-124</y>
|
|
|
|
<w>22</w>
|
|
|
|
<h>44</h>
|
2002-08-22 16:28:11 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/steam/horizon-adjust</property>
|
|
|
|
<step>-0.5</step>
|
|
|
|
<min>-5</min>
|
|
|
|
<max>5</max>
|
|
|
|
<wrap>false</wrap>
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<action>
|
|
|
|
<name>coarse lower</name>
|
|
|
|
<button>1</button>
|
|
|
|
<x>-11</x>
|
|
|
|
<y>-62</y>
|
|
|
|
<w>11</w>
|
|
|
|
<h>22</h>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/steam/horizon-adjust</property>
|
|
|
|
<step>-5</step>
|
|
|
|
<min>-5</min>
|
|
|
|
<max>5</max>
|
|
|
|
<wrap>false</wrap>
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<action>
|
|
|
|
<name>fine raise</name>
|
|
|
|
<button>0</button>
|
|
|
|
<x>0</x>
|
2002-08-22 16:57:36 +00:00
|
|
|
<y>-124</y>
|
|
|
|
<w>22</w>
|
|
|
|
<h>44</h>
|
2002-08-22 16:28:11 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/steam/horizon-adjust</property>
|
|
|
|
<step>0.5</step>
|
|
|
|
<min>-5</min>
|
|
|
|
<max>5</max>
|
|
|
|
<wrap>false</wrap>
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<action>
|
|
|
|
<name>coarse raise</name>
|
|
|
|
<button>1</button>
|
|
|
|
<x>0</x>
|
2002-08-22 16:57:36 +00:00
|
|
|
<y>-124</y>
|
|
|
|
<w>22</w>
|
|
|
|
<h>44</h>
|
2002-08-22 16:28:11 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/steam/horizon-adjust</property>
|
|
|
|
<step>5</step>
|
|
|
|
<min>-5</min>
|
|
|
|
<max>5</max>
|
|
|
|
<wrap>false</wrap>
|
|
|
|
</binding>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
</actions>
|
|
|
|
|
|
|
|
</PropertyList>
|