- Messages
- 210
- Country

I have taken Roman's code for the landing/taxi lights and adapted it for my own 2d Lear starter/Gen switches.
This is the same idea that has been covered in the past 3 way Learjet starter switches.
Center - off
Down - Starter
Up- Generator on
My adapted code works perfectly....except the switch does not visually go to the UPposition when clicked.
The Generators are coming on line so that part works fine.
Any help would be appreaciated...
Here's the whole gauge..
Thank you
Greg
This is the same idea that has been covered in the past 3 way Learjet starter switches.
Center - off
Down - Starter
Up- Generator on
My adapted code works perfectly....except the switch does not visually go to the UPposition when clicked.
The Generators are coming on line so that part works fine.
Any help would be appreaciated...
Here's the whole gauge..
Code:
<Gauge Name="Lear starter1 " Version="1.0">
<Element>
<Select>
<Value>(A:General eng1 generator switch,bool) if{ 50 } els{ (A:Circuit general panel on, bool) (A:Eng1 N2 RPM, percent) 50 < && if{ 0 (>K:TOGGLE_STARTER1) } els{ (G:Var1) -- (>G:Var1) } } (G:Var1) 0 != (A:General eng1 starter, bool) if{ 0 } els{ 25 } }</Value>
<Case Value="25">
<Image Name="Toggle_Switch_Lg_Cen.bmp" ImageSizes="34,44"/>
</Case>
<Case Value="50">
<Image Name="Toggle_Switch_Lg_Up.bmp" ImageSizes="34,44"/>
</Case>
<Case Value="0">
<Image Name="Toggle_Switch_Lg_Down.bmp" ImageSizes="34,44"/>
</Case>
</Select>
</Element>
<Mouse>
<Area Left="0" Right="42" Top="0" Bottom="33">
<Cursor Type="UpArrow" />
<Click Event="TOGGLE_ALTERNATOR1"/>
</Area>
<Area Left="0" Right="42" Top="34" Bottom="67">
<Cursor Type="DownArrow" />
<Click>5 (>G:Var1)</Click>
</Area>
</Mouse>
</Gauge>
Thank you
Greg


