Code:
<!-- CMC Leopoard --> <PartInfo>
<Name>cylinder_wiskey_compass_bank</Name>
<AnimLength>40</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>PLANE BANK DEGREES</Variable>
<Units>degree</Units>
<Bias>20</Bias>
<MinValue>-20</MinValue>
<MaxValue>20</MaxValue>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>cylinder_wiskey_compass_pitch</Name>
<AnimLength>40</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>PLANE PITCH DEGREES</Variable>
<Units>degree</Units>
<Bias>20</Bias>
<MinValue>-20</MinValue>
<MaxValue>20</MaxValue>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>cylinder_wiskey_compass_heading</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>
(A:PLANE HEADING DEGREES MAGNETIC, degree)
</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>c_wheel100-200</Name>
<AnimLength>200</AnimLength>
<Animation>
<Parameter>
<Code>
(A:GEAR CENTER STEER ANGLE, grads) 0 > if{ (A:GEAR CENTER STEER ANGLE, grads) 0.25 * 100 + } els{ (A:GEAR CENTER STEER ANGLE, grads) 0.25 * 200 + }
</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>usr_rdr</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(A:RUDDER DEFLECTION, grads) 0 > if{ (A:RUDDER DEFLECTION, grads) 0.25 * } els{ (A:RUDDER DEFLECTION, grads) 0.25 * 100 + }
</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>light_fuelpump0</Name>
<Visibility>
<Parameter>
<Code>
(A:GENERAL ENG1 FUEL PUMP ON,bool)
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Left Fuel Pump Indicator</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_fuelpump1</Name>
<Visibility>
<Parameter>
<Code>
(A:GENERAL ENG2 FUEL PUMP ON,bool)
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Right Fuel Pump Indicator</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_fuelcock0</Name>
<Visibility>
<Parameter>
<Code>
2 (A:GENERAL ENG1 FUEL VALVE, bool) (A:CIRCUIT GENERAL PANEL ON, bool) + ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Left Fuel LP Cock Indicator</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_fuelcock1</Name>
<Visibility>
<Parameter>
<Code>
2 (A:GENERAL ENG2 FUEL VALVE, bool) (A:CIRCUIT GENERAL PANEL ON, bool) + ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Right Fuel LP Cock Indicator</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_starter0</Name>
<Visibility>
<Parameter>
<Code>
2 (A:GENERAL ENG1 STARTER, bool) (A:CIRCUIT GENERAL PANEL ON, bool) + ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Left Starter Indicator</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_starter1</Name>
<Visibility>
<Parameter>
<Code>
2 (A:GENERAL ENG2 STARTER, bool) (A:CIRCUIT GENERAL PANEL ON, bool) + ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Right Starter Indicator</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_xfeedl</Name>
<Visibility>
<Parameter>
<Code>
<!-- Having some issues with this code, keep getting it backwards -->
-1 (L:XFeedToggle,enum) (A:CIRCUIT GENERAL PANEL ON, bool) * ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Fuel Cross Feed Right to Left</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_xfeedr</Name>
<Visibility>
<Parameter>
<Code>
2 (L:XFeedToggle,enum) (A:CIRCUIT GENERAL PANEL ON, bool) + ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Fuel Cross Feed Left to Right</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_gen0</Name>
<Visibility>
<Parameter>
<Code>
2 (A:GENERAL ENG1 GENERATOR ACTIVE, bool) (A:CIRCUIT GENERAL PANEL ON, bool) + ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Left Generator Active</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_gen1</Name>
<Visibility>
<Parameter>
<Code>
2 (A:GENERAL ENG2 GENERATOR ACTIVE, bool) (A:CIRCUIT GENERAL PANEL ON, bool) + ==
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Right Generator Active</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_busbattery_lv</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Battery Bus Low Voltage</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_busleft_lv</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Left Bus Low Voltage</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_busright_lv</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Right Bus Low Voltage</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_bus_triple_lv</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Triple Bus Low Voltage</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_battery_lv</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Battery Low Voltage</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_groundpower</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
<MouseRect>
<TooltipText>Ground Power Enabled</TooltipText>
<!-- There is a toggle code to go here -->
</MouseRect>
</PartInfo>
<PartInfo>
<Name>light_unknown1</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>light_unknown2</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>light_unknown3</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>light_unknown4</Name>
<Visibility>
<Parameter>
<Code>
0
</Code>
</Parameter>
</Visibility>
</PartInfo>
<PartInfo>
<Name>switch_leopard_xfeed</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
50 (L:XFeedToggle,enum) 50 * +
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Flap Lever</TooltipText>
<MouseFlags>LeftSingle+RightSingle+LeftRelease+RightRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:XFeedToggle,enum) 0 == if{ -1 (>L:XFeedToggle,enum) (>K:CROSS_FEED_RIGHT_TO_LEFT) } els{ 0 (>L:XFeedToggle,enum) (>K:CROSS_FEED_OFF) } }
(M:Event) 'RightSingle' scmp 0 ==
if{ (L:XFeedToggle,enum) 0 == if{ 1 (>L:XFeedToggle,enum) (>K:CROSS_FEED_LEFT_TO_RIGHT) } els{ 0 (>L:XFeedToggle,enum) (>K:CROSS_FEED_OFF) } }
</CallbackCode>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>switch_leopard_starter</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
50 (L:StarterToggle,enum) 50 * +
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Starter Switch</TooltipText>
<MouseFlags>LeftSingle+RightSingle+LeftRelease+RightRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ -1 (>L:StarterToggle, enum) (>K:TOGGLE_STARTER1) }
(M:Event) 'LeftRelease' scmp 0 ==
if{ 0 (>L:StarterToggle, enum) (>K:TOGGLE_STARTER1) }
(M:Event) 'RightSingle' scmp 0 ==
if{ 1 (>L:StarterToggle, enum) (>K:TOGGLE_STARTER2) }
(M:Event) 'RightRelease' scmp 0 ==
if{ 0 (>L:StarterToggle, enum) (>K:TOGGLE_STARTER2) }
</CallbackCode>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>switch_bussense</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>50 (L:Bus_Sense, bool) 50 * -</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>(L:Bus_Sense, bool) ! (>L:Bus_Sense, bool)</CallbackCode>
<TooltipText>Bus Sense</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>switch_bustie</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>50 (L:Bus_Tie, bool) 50 * -</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>(L:Bus_Tie, bool) ! (>L:Bus_Tie, bool)</CallbackCode>
<TooltipText>Bus Tie</TooltipText>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>T38_toggle_Flaps</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
50 (L:FlapToggle,enum) 50 * +
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Flap Lever</TooltipText>
<MouseFlags>LeftSingle+RightSingle+LeftRelease+RightRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ -1 (>L:FlapToggle, enum) (>K:FLAPS_INCR) (P:local time, seconds) 0.5 + (>L:Flap_reset) }
(M:Event) 'RightSingle' scmp 0 ==
if{ 1 (>L:FlapToggle, enum) (>K:FLAPS_DECR) (P:local time, seconds) 0.5 + (>L:Flap_reset) }
</CallbackCode>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>T38_Logic</Name>
<Visibility>
<Parameter>
<Code>
<!-- RESET FLAP LEVER TO NEUTRAL -->
(L:Flap_reset) (P:local time, seconds) >
if{ }
els{ 0 (>L:FlapToggle,enum) }
</Code>
</Parameter>
</Visibility>
</PartInfo>
<!-- End CMC Leopard Animations -->
Bookmarks