| 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <!-- |
| 4 | Default airspeed indicator instrument. |
| 5 | |
| 6 | Started summer 2000 by David Megginson, [email protected]. |
| 7 | |
| 8 | This is an instrument configuration file for the open-source flight |
| 9 | simulator FlightGear (www.flightgear.org). The file is an XML-encoded |
| 10 | FlightGear property list defining the instrument's layers and actions. |
| 11 | |
| 12 | Each instrument is composed of layers stacked on top of each other. |
| 13 | A layer may be a texture (with transparent parts to show the layers |
| 14 | underneath), text, or a special layer that switches between two |
| 15 | others (say, to turn an indicator light on or off). Each layer can |
| 16 | move independently in proportion to a property value, and text |
| 17 | can be generated from property values as well: all of the layer's |
| 18 | movements are defined as transformations. |
| 19 | |
| 20 | Actions are hotspots on the instrument that will respond to a mouse |
| 21 | click. Actions always modify the values of properties, either by |
| 22 | adjusting them, toggling them, or swaping them with other |
| 23 | properties' values. |
| 24 | --> |
| 25 | |
| 26 | <PropertyList> |
| 27 | <name>Airspeed Indicator</name> |
| 28 | <w-base>128</w-base> |
| 29 | <h-base>128</h-base> |
| 30 | <layers> |
| 31 | <layer> |
| 32 | <name>face</name> |
| 33 | <texture> |
| 34 | <path>Aircraft/Instruments/Textures/faces-2.rgb</path> |
| 35 | <x1>0</x1> |
| 36 | <y1>0.51</y1> |
| 37 | <x2>0.49</x2> |
| 38 | <y2>1.0</y2> |
| 39 | </texture> |
| 40 | </layer> |
| 41 | <layer> |
| 42 | <texture> |
| 43 | <path>Aircraft/Instruments/Textures/misc-1.rgb</path> |
| 44 | <x1>0.8</x1> |
| 45 | <y1>0.78125</y1> |
| 46 | <x2>0.8375</x2> |
| 47 | <y2>1.0</y2> |
| 48 | </texture> |
| 49 | <w>8</w> |
| 50 | <h>56</h> |
| 51 | <transformations> |
| 52 | <transformation> |
| 53 | <type>rotation</type> |
| 54 | <property>/instrumentation/airspeed-indicator/indicated-speed-kt</property> |
| 55 | <min>30.0</min> |
| 56 | <max>220.0</max> |
| 57 | <scale>1.8</scale> |
| 58 | <offset>-54.0</offset> |
| 59 | <!-- |
| 60 | Wacky interpolation table for demo only: the airspeed indicator will |
| 61 | jump ahead at 10kt, shoot very far for 30kt, then start moving |
| 62 | slowly backwards as the airspeed approaches 100kt. Please don't |
| 63 | use this for regular flying, except perhaps as a practical joke. |
| 64 | |
| 65 | DPM 2001-05-04 |
| 66 | --> |
| 67 | <!-- |
| 68 | <interpolation> |
| 69 | <entry> |
| 70 | <ind>0.0</ind> |
| 71 | <dep>0.0</dep> |
| 72 | </entry> |
| 73 | <entry> |
| 74 | <ind>10.0</ind> |
| 75 | <dep>44.0</dep> |
| 76 | </entry> |
| 77 | <entry> |
| 78 | <ind>30.0</ind> |
| 79 | <dep>269.0</dep> |
| 80 | </entry> |
| 81 | <entry> |
| 82 | <ind>100.0</ind> |
| 83 | <dep>89.0</dep> |
| 84 | </entry> |
| 85 | </interpolation> |
| 86 | --> |
| 87 | </transformation> |
| 88 | <transformation> |
| 89 | <type>y-shift</type> |
| 90 | <offset>24</offset> |
| 91 | </transformation> |
| 92 | </transformations> |
| 93 | </layer> |
| 94 | <layer> |
| 95 | <name>button</name> |
| 96 | <texture> |
| 97 | <path>Aircraft/Instruments/Textures/misc-1.rgb</path> |
| 98 | <x1>0.6171875</x1> |
| 99 | <y1>0.2421875</y1> |
| 100 | <x2>0.7890625</x2> |
| 101 | <y2>0.4140625</y2> |
| 102 | </texture> |
| 103 | <w>15</w> |
| 104 | <h>15</h> |
| 105 | </layer> |
| 106 | </layers> |
| 107 | </PropertyList> |