1
0
Fork 0
fgdata/Aircraft/Instruments/adf.xml
david f026a4db74 Patch from Julian Foad:
OK -- thanks.  I have now fixed up all the other XML files in the base
package that use "max" and "wrap".  Those affected are all in
Aircraft/Instruments/.  In these files I have also corrected the
indentation in some places, and corrected the frequency controls in
nav3.xml (which does not seem to be in use), and corrected a few obvious
hotspot position bugs.  Where the radios used wrapping to toggle the
ident button between 0 and 1, I have changed this to use
"property-toggle" instead.
2003-01-19 22:00:08 +00:00

260 lines
5.7 KiB
XML

<?xml version="1.0"?>
<!--
Default ADF gauge 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>ADF Gauge</name>
<w-base>128</w-base>
<h-base>128</h-base>
<layers>
<layer>
<name>gauge face</name>
<texture>
<path>Aircraft/Instruments/Textures/faces-1.rgb</path>
<x1>0.0</x1>
<y1>0.515625</y1>
<x2>0.484375</x2>
<y2>1.0</y2>
</texture>
<w>104</w>
<h>104</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/radios/kr-87/inputs/rotation-deg</property>
<min>-360.0</min>
<max>360.0</max>
</transformation>
</transformations>
</layer>
<layer>
<name>Face with markings</name>
<texture>
<path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
<x1>0.01</x1>
<y1>0.5</y1>
<x2>0.5</x2>
<y2>1.0</y2>
</texture>
<w>104</w>
<h>104</h>
</layer>
<!-- fix misc.rgb -->
<layer>
<name>Needle</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.8671875</x1>
<y1>0.25</y1>
<x2>0.921875</x2>
<y2>1.0</y2>
</texture>
<w>9</w>
<h>64</h>
<transformations>
<transformation>
<type>rotation</type>
<!--set>45</offset-->
<property>/radios/kr-87/outputs/needle-deg</property>
<min>-360</min>
<max>360</max>
</transformation>
<transformation>
<type>x-shift</type>
<offset>-1</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Plane</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.5</x1>
<y1>0.734375</y1>
<x2>0.59375</x2>
<y2>0.828125</y2>
</texture>
<w>25</w>
<h>25</h>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-6</offset>
</transformation>
</transformations>
</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>
</texture>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-1</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>glare shield</name>
<texture>
<path>Aircraft/Instruments/Textures/bezel1.rgb</path>
<x1>0.5</x1>
<y1>0.0</y1>
<x2>1.0</x2>
<y2>0.5</y2>
</texture>
<w>124</w>
<h>124</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/orientation/roll-deg</property>
<min>-360.0</min>
<max>360.0</max>
<scale>1.0</scale>
<wrap>1</wrap>
</transformation>
<transformation>
<type>x-shift</type>
<offset>2</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-2</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Knob</name>
<texture>
<path>Aircraft/Instruments/Textures/blister.rgb</path>
<x1>0.25</x1>
<y1>0.75</y1>
<x2>0.5</x2>
<y2>1.0</y2>
</texture>
<h>24</h>
<w>24</w>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>rotation</type>
<property>/radios/kr-87/inputs/rotation-deg</property>
<min>-360.0</min>
<max>360.0</max>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<action>
<name>small clockwise rotation</name>
<button>0</button>
<x>-56</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/kr-87/inputs/rotation-deg</property>
<step>-1.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>large clockwise rotation</name>
<button>1</button>
<x>-56</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/kr-87/inputs/rotation-deg</property>
<step>-5.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>small counter-clockwise rotation</name>
<button>0</button>
<x>-46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/kr-87/inputs/rotation-deg</property>
<step>1.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>large counter-clockwise rotation</name>
<button>1</button>
<x>-46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/kr-87/inputs/rotation-deg</property>
<step>5.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
</actions>
</PropertyList>