<?xml version="1.0"?>

<!--
X15 artificial horizon instrument.
Oct 13 2000
John Check <j4strngs@rockfish.net>
_______________________________________________________________________________

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>

 <name>Artificial Horizon</name>

 <w-base>128</w-base>
 <h-base>128</h-base>

 <layers>

  <layer>
   <name>background</name>
   <texture>
    <path>Aircraft/Instruments/Textures/default-attitude-indicator.rgb</path>
    <x1>0.51</x1>
    <y1>0.51</y1>
    <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>
   <w>128</w>
   <h>128</h>
  </layer>
 
  <layer>
   <name>float</name>
   <texture>
    <path>Aircraft/Instruments/Textures/default-attitude-indicator.rgb</path>
    <x1>0.00390625</x1>
    <x2>0.40234375</x2>
    <y1>0.625</y1>
    <y2>0.8828125</y2>
   </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>
     <scale>-1.2</scale>
     <offset>0</offset>
    </transformation>
   </transformations>
   <w>104</w>
   <h>66</h>
  </layer>

  <layer>
   <name>rim</name>
   <texture>
    <path>Aircraft/Instruments/Textures/default-attitude-indicator.rgb</path>
    <x1>0</x1>
    <y1>0</y1>
    <x2>0.49</x2>
    <y2>0.49</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>
   <w>128</w>
   <h>128</h>
  </layer>


  <layer>
   <name>front top</name>
   <texture>
    <path>Aircraft/Instruments/Textures/default-attitude-indicator.rgb</path>
    <x1>0.5</x1>
    <y1>0.25</y1>
    <x2>1.0</x2>
    <y2>0.5</y2>
   </texture>
    <transformations>
    <transformation>
     <type>y-shift</type>
     <offset>32</offset>
    </transformation>
   </transformations>
   <h>64</h>
 </layer>

 <layer> 
  <name>plane</name>
  <texture>
   <path>Aircraft/Instruments/Textures/default-attitude-indicator.rgb</path>
   <x1>0.5</x1>
   <y1>0.0</y1>
   <x2>1.0</x2>
   <y2>0.25</y2>
  </texture>
  <transformations>
   <transformation>
    <type>y-shift</type>
    <offset>-32</offset>
   </transformation>
   <transformation>
    <type>y-shift</type>
   <property>/steam/horizon-adjust</property>
   </transformation>
  </transformations>  
  <h>64</h>
 </layer>

 <layer>
  <name>bezel</name>
  <texture>
   <path>Aircraft/Instruments/Textures/bezel.rgb</path>
   <x1>0.0</x1>
   <y1>0.0</y1>
   <x2>1.0</x2>
   <y2>1.0</y2>
   <w>256</w>
   <h>256</h>
  </texture>
 </layer>
 
 <layer>
  <name>adjustment knob</name>
  <texture>
   <path>Aircraft/Instruments/Textures/misc-1.rgb</path>
   <x1>0.6171875</x1>
   <y1>0.2421875</y1>
   <x2>0.7890625</x2>
   <y2>0.4140625</y2>
  </texture>
  <w>24</w>
  <h>24</h>
  <transformations>
   <transformation>
    <type>x-shift</type>
    <offset>-52</offset>
   </transformation>
   <transformation>
    <type>y-shift</type>
    <offset>-52</offset>
   </transformation>
  </transformations>
  </layer>
 </layers>
 <actions>
  <action>
   <name></name>
   <button>0</button>
   <x>-64</x>
   <y>-64</y>
   <w>13</w>
   <h>26</h>
  <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></name>
   <button>1</button>
   <x>-64</x>
   <y>-64</y>
   <w>13</w>
   <h>26</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></name>
   <button>0</button>
   <x>-51</x>
   <y>-64</y>
   <w>13</w>
   <h>26</h>
  <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></name>
   <button>1</button>
   <x>-51</x>
   <y>-64</y>
   <w>13</w>
   <h>26</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>

</actions>
</PropertyList>

