1
0
Fork 0
fgdata/Aircraft/Instruments/controls.xml

249 lines
5.7 KiB
XML

<?xml version="1.0"?>
<!--
Default control position indicator 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>control position indicators</name>
<w-base>112</w-base>
<h-base>112</h-base>
<layers>
<layer>
<name>background</name>
<texture>
<path>Aircraft/Instruments/Textures/faces-3.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>0.5</x2>
<y2>0.5</y2>
</texture>
</layer>
<layer>
<name>aileron indicator</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.11328125</x1>
<y1>0.2734375</y1>
<x2>0.15234375</x2>
<y2>0.3046875</y2>
</texture>
<transformations>
<transformation>
<type>x-shift</type>
<property>/controls/flight/aileron</property>
<min>-1</min>
<max>1</max>
<scale>42</scale>
</transformation>
<transformation>
<type>rotation</type>
<offset>180</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-50</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>2</offset>
</transformation>
</transformations>
<w>8</w>
<h>8</h>
</layer>
<layer>
<name>rudder indicator</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.11328125</x1>
<y1>0.2734375</y1>
<x2>0.15234375</x2>
<y2>0.3046875</y2>
</texture>
<transformations>
<transformation>
<type>rotation</type>
<offset>0</offset>
</transformation>
<transformation>
<type>x-shift</type>
<property>/controls/flight/rudder</property>
<min>-1</min>
<max>1</max>
<scale>42</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-52</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>-1</offset>
</transformation>
</transformations>
<w>8</w>
<h>8</h>
</layer>
<layer>
<name>elevator trim indicator</name>
<w>8</w>
<h>8</h>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.11328125</x1>
<y1>0.2734375</y1>
<x2>0.15234375</x2>
<y2>0.3046875</y2>
</texture>
<transformations>
<transformation>
<type>rotation</type>
<offset>90</offset>
</transformation>
<transformation>
<type>x-shift</type>
<property>/controls/flight/elevator-trim</property>
<min>-1.0</min>
<max>1.0</max>
<scale>-42</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-12</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>2</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>elevator indicator</name>
<w>8</w>
<h>8</h>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.11328125</x1>
<y1>0.2734375</y1>
<x2>0.15234375</x2>
<y2>0.3046875</y2>
</texture>
<transformations>
<transformation>
<type>rotation</type>
<offset>270</offset>
</transformation>
<transformation>
<type>x-shift</type>
<property>/controls/flight/elevator</property>
<min>-1.0</min>
<max>1.0</max>
<scale>42</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-10</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>-1</offset>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<action>
<desc>elevator trim up</desc>
<button>0</button>
<x>-15</x>
<y>0</y>
<w>30</w>
<h>40</h>
<binding>
<command>property-adjust</command>
<property>/controls/flight/elevator-trim</property>
<step>0.01</step>
<min>-1.0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<desc>elevator trim down</desc>
<button>0</button>
<x>-15</x>
<y>-42</y>
<w>30</w>
<h>40</h>
<binding>
<command>property-adjust</command>
<property>/controls/flight/elevator-trim</property>
<step>-0.01</step>
<min>-1.0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<!--
<action>
<desc>rudder trim left</desc>
<button>0</button>
<x>-45</x>
<y>-66</y>
<w>45</w>
<h>20</h>
<binding>
<command>property-adjust</command>
<property>/controls/flight/rudder-trim</property>
<step>-0.005</step>
<min>-1.0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<desc>rudder trim right</desc>
<button>0</button>
<x>0</x>
<y>-66</y>
<w>45</w>
<h>20</h>
<binding>
<command>property-adjust</command>
<property>/controls/flight/rudder-trim</property>
<step>0.005</step>
<min>-1.0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
-->
</actions>
</PropertyList>