1
0
Fork 0
fgdata/Aircraft/Instruments/single-magneto-switch.xml

244 lines
4.8 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<!--
Electrical panel.
John Check <j4strngs@usa.net>
-->
<PropertyList>
<name>magneto switch panel</name>
<w-base>150</w-base>
<h-base>72</h-base>
<params>
<magneto-select>/controls/magnetos[0]</magneto-select>
<starter-select>/controls/starter[0]</starter-select>
</params>
<layers>
<layer>
<name>backplate</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.378125</x1>
<y1>0.65</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture>
<w>150</w>
<h>72</h>
</layer>
<layer>
<name>magneto label</name>
<texture>
<path>Aircraft/Instruments/Textures/flaps.rgb</path>
<x1>0.0</x1>
<y1>0.65</y1>
<x2>0.375</x2>
<y2>1.0</y2>
</texture>
<w>64</w>
<h>64</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-35</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-5</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>magneto switch</name>
<type>switch</type>
<layer>
<condition>
<property alias="../../../../../params/starter-select"/>
</condition>
<name>starter engage</name>
<texture>
<path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
<x1>0.53125</x1>
<x2>0.59765625</x2>
<y1>0.05859375</y1>
<y2>0.1484375</y2>
</texture>
<w>30</w>
<h>40</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-40</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-13</offset>
</transformation>
<transformation>
<type>rotation</type>
<offset>90</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-5</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>magneto select</name>
<texture>
<path>Aircraft/Instruments/Textures/navcom-radios.rgb</path>
<x1>0.53125</x1>
<x2>0.59765625</x2>
<y1>0.05859375</y1>
<y2>0.1484375</y2>
</texture>
<w>30</w>
<h>40</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-40</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-13</offset>
</transformation>
<transformation>
<type>rotation</type>
<property alias="../../../../../../params/magneto-select"/>
<min>-0</min>
<max>135</max>
<scale>45</scale>
<offset>-90</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-5</offset>
</transformation>
</transformations>
</layer>
</layer>
<!-- magneto switch end -->
<layer include="switch.xml">
<transformations>
<transformation>
<type>x-shift</type>
<offset>-0</offset>
</transformation>
</transformations>
</layer>
<layer include="switch.xml">
<transformations>
<transformation>
<type>x-shift</type>
<offset>20</offset>
</transformation>
</transformations>
</layer>
<layer include="switch.xml">
<transformations>
<transformation>
<type>x-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer include="switch.xml">
<transformations>
<transformation>
<type>x-shift</type>
<offset>60</offset>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<action>
<name>Rotate knob left</name>
<button>0</button>
2003-01-27 01:32:46 +00:00
<x>-74</x>
<y>-36</y>
<w>34</w>
<h>72</h>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/magneto-select"/>
<step>-1</step>
<min>0</min>
<max>3</max>
<wrap>0</wrap>
</binding>
</action>
<action>
<condition>
<less-than>
<property alias="../../../../../params/magneto-select"/>
<value>3</value>
</less-than>
</condition>
<name>Rotate knob right</name>
<button>0</button>
<x>-40</x>
2003-01-27 01:32:46 +00:00
<y>-36</y>
<w>34</w>
<h>72</h>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/magneto-select"/>
<step>1</step>
<min>0</min>
<max>3</max>
<wrap>0</wrap>
</binding>
</action>
<action>
<condition>
<equals>
<property alias="../../../../../params/magneto-select"/>
<value>3</value>
</equals>
</condition>
<name>Engage starter</name>
<button>0</button>
<x>-40</x>
2003-01-27 01:32:46 +00:00
<y>-36</y>
<w>34</w>
<h>72</h>
<repeatable type="bool">false</repeatable>
<binding>
<command>property-assign</command>
<property alias="../../../../params/starter-select"/>
<value type="bool">true</value>
<repeatable type="bool">false</repeatable>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property alias="../../../../../params/starter-select"/>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</actions>
</PropertyList>