- Messages
- 92
- Country

Hi.
I've created the following Animation in modeldef.xml file to control spoilers:
"
<Animation name="lever_Spoilers" guid="b6b8766c-b7c3-44ca-7b6a-3a7f92e13e61" type="Sim" typeParam="AutoPlay" typeParam2="lever_Spoilers" />
<PartInfo>
<Name>lever_Spoilers</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_GAUGE_SPOILER</HelpID>
<TooltipID>TOOLTIPTEXT_SPEED_BRAKE</TooltipID>
<MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
<CallbackDragging>
<Variable>SPOILERS HANDLE POSITION</Variable>
<Units>position</Units>
<Scale>1</Scale>
<YScale>-1</YScale>
<MinValue>-16384</MinValue>
<MaxValue>16383</MaxValue>
<EventID>KEY_SPOILERS_SET</EventID>
</CallbackDragging>
</MouseRect>
</PartInfo>
"
But it does not work.
Both name and guid are unique.
Only parts that work are cursor changing the right way, and the tooltip.
Any idea, what I messed up?
I've created the following Animation in modeldef.xml file to control spoilers:
"
<Animation name="lever_Spoilers" guid="b6b8766c-b7c3-44ca-7b6a-3a7f92e13e61" type="Sim" typeParam="AutoPlay" typeParam2="lever_Spoilers" />
<PartInfo>
<Name>lever_Spoilers</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_GAUGE_SPOILER</HelpID>
<TooltipID>TOOLTIPTEXT_SPEED_BRAKE</TooltipID>
<MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
<CallbackDragging>
<Variable>SPOILERS HANDLE POSITION</Variable>
<Units>position</Units>
<Scale>1</Scale>
<YScale>-1</YScale>
<MinValue>-16384</MinValue>
<MaxValue>16383</MaxValue>
<EventID>KEY_SPOILERS_SET</EventID>
</CallbackDragging>
</MouseRect>
</PartInfo>
"
But it does not work.
Both name and guid are unique.
Only parts that work are cursor changing the right way, and the tooltip.
Any idea, what I messed up?


