116 lines
2.8 KiB
XML
116 lines
2.8 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
C172 flaps control.
|
|
|
|
Oct 20 2000 by John Check <j4strngs@rockfish.net>
|
|
________________________________________________________________________________
|
|
|
|
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>Flaps Indicator</name>
|
|
<w-base>56</w-base>
|
|
<h-base>96</h-base>
|
|
|
|
<layers>
|
|
<layer>
|
|
<name>background</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
|
|
<x1>0.0</x1>
|
|
<y1>0.0</y1>
|
|
<x2>0.3515625</x2>
|
|
<y2>0.625</y2>
|
|
</texture>
|
|
</layer>
|
|
<layer>
|
|
<name>handle</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/handles.rgb</path>
|
|
<x1>0.0</x1>
|
|
<x2>0.38</x2>
|
|
<y1>0.875</y1>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<w>34</w>
|
|
<h>15</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>/controls/flight/flaps</property>
|
|
<min>0.0</min>
|
|
<max>1.0</max>
|
|
<scale>17.0</scale>
|
|
<offset>0</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property>/controls/flight/flaps</property>
|
|
<min>0.0</min>
|
|
<max>1.0</max>
|
|
<scale>-45.0</scale>
|
|
<offset>24</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<offset>180</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
</layers>
|
|
|
|
<actions>
|
|
|
|
<action>
|
|
<name>extend</name>
|
|
<button>0</button>
|
|
<x>-30</x>
|
|
<y>-48</y>
|
|
<w>30</w>
|
|
<h>96</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/controls/flight/flaps</property>
|
|
<step>-0.34</step>
|
|
<min>0.0</min>
|
|
<max>1.0</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>retract</name>
|
|
<button>0</button>
|
|
<x>0</x>
|
|
<y>-48</y>
|
|
<w>30</w>
|
|
<h>96</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/controls/flight/flaps</property>
|
|
<step>0.34</step>
|
|
<min>0.0</min>
|
|
<max>1.0</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
</actions>
|
|
</PropertyList>
|