Hi Simmer Experts,
I have made a dummy Cab Heat lever that has no purpose except to display animation for 0 to 100 frames. There is no Cabin Heat function and that is why I am making the dummy. The attached code will not work in the modeldef.xml which will not load with this code installed. I have it located down to the callback code, I ask what is wrong in that area?
Thanks in advance for any help rendered.
Richie35
I have made a dummy Cab Heat lever that has no purpose except to display animation for 0 to 100 frames. There is no Cabin Heat function and that is why I am making the dummy. The attached code will not work in the modeldef.xml which will not load with this code installed. I have it located down to the callback code, I ask what is wrong in that area?
Code:
<Animation name="lever_cab_heat" guid="9E5346B0-87EE-462d-A2C4-539A00DE252D" length="100" type="Sim" typeParam2="lever_cab_heat" typeParam="AutoPlay" />
<!--P2004B bravo items-->
<PartInfo>
<Name>lever_cab_heat</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>L:Cab_Heat_Adjust</Variable>
<Units>number</Units>
<Scale>1</Scale>
</Sim>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{ (L:Cab_Heat_Adjust, number) 1 - s0 10 > if{ 10 } els{ l0 } (>L:Cab_Heat_Adjust, number) (L:Cab_Heat_Adjust, number) 1 < if{ 0 (>L:Cab_Heat_Adjust,number) }
(M:Event) 'RightSingle' scmi 0 == if{ (L:Cab_Heat_Adjust, number) 1 + s0 10 > if{ 10 } els{ l0 } (>L:Cab_Heat_Adjust, number) (L:Cab_Heat_Adjust, number) 1 < if{ 0 (>L:Cab_Heat_Adjust,number) }
</CallbackCode>
<TooltipID></TooltipID>
</MouseRect>
</PartInfo>
<!--end P2004B Bravo items-->
Thanks in advance for any help rendered.
Richie35

