Magneto file problem

E

ersto55

Guest
Dear simmers,

I made a new panel for a Stinson plane, while using some gauges from other planes. For the magneto switch I used the XML gauge of the Spartan Executive. I want the plane to be loaded with the magnetos off. I tried the Cold and Dark procedure but no result magneto stands on "Both". I think it must be the XML file that holds the mistery. I don' t understand the xml language so it is for me impossible to change the gauge parameters. Is there anyone who knows this XML stuff? I put the text of the file hereby. Thanks a lot for your kind help. Greetz Erwin :applause::applause::applause:

<Gauge Name="magneto_switch" Version="1.0">
<Image Name="mag_switch_back.bmp"/>

<Element>
<Position X="46" Y="46"/>
<Image Name="mag_switch_lever.bmp" PointsTo="South">
<Axis X="4" Y="-13"/>
</Image>
<Rotate>
<Value>(A:Recip eng left magneto:1,bool) 2 * (A:Recip eng right magneto:1,bool) +</Value>
<Nonlinearity>
<Item Value="0" X="85" Y="72"/>
<Item Value="1" X="70" Y="85"/>
<Item Value="2" X="46" Y="91"/>
<Item Value="3" X="22" Y="88"/>
</Nonlinearity>
<Delay DegreesPerSecond="180"/>
</Rotate>
</Element>


<Mouse>
<Area Left="0" Top="0" Width="92" Height="92">
<Tooltip ID="TOOLTIPTEXT_ENG1_MAGNETO_SWITCH"/>
<Area Left="47">
<Cursor Type="DownArrow"/>
<Click Repeat="Yes">
(A:Recip eng left magneto:1,bool) 2 *
(A:Recip eng right magneto:1,bool) +
s0 3 ==
if{ 0 (>K:MAGNETO1_OFF) 0 (>K:MAGNETO1_LEFT) }
els{ l0 2 == if{ 0 (>K:MAGNETO1_OFF) 0 (>K:MAGNETO1_RIGHT) }
els{ l0 1 == if{ 0 (>K:MAGNETO1_OFF) }
}
}
</Click>
</Area>
<Area Right="45">
<Cursor Type="UpArrow"/>
<Click Repeat="Yes">
(A:Recip eng left magneto:1,bool) 2 *
(A:Recip eng right magneto:1,bool) +
s0 0 ==
if{ 0 (>K:MAGNETO1_OFF) 0 (>K:MAGNETO1_RIGHT) }
els{ l0 1 == if{ 0 (>K:MAGNETO1_OFF) 0 (>K:MAGNETO1_LEFT) }
els{ l0 2 == if{ 0 (>K:MAGNETO1_BOTH) }
}
}
</Click>
</Area>
</Area>

</Mouse>

</Gauge>
 

Attachments

  • mag_switch_Back.bmp
    9.3 KB · Views: 0
Back
Top