- Messages
- 7
Hello everyone,
I created a box named "AP_1" in 3DS Max and exported the model into MSFS2020. Now I want to map a "MouseRect" to it with the given code:
But for some reason my mouse cursor doesn't change when I hover over the Object, did I miss anything ?
I created a box named "AP_1" in 3DS Max and exported the model into MSFS2020. Now I want to map a "MouseRect" to it with the given code:
<Behaviors>
<Include ModelBehaviorFile="Asobo\Common.xml"/>
<Include ModelBehaviorFile="Asobo\Transponder\\Transponder.xml"/>
<Include ModelBehaviorFile="Asobo\NAVCOM\NavComSystem.xml"/>
<Include ModelBehaviorFile="Asobo\NAVCOM\ADF.xml"/>
<PartInfo>
<Name>ap_1</Name>
<PartID>AP_1</PartID>
<MouseRect>
<Cursor>Grab</Cursor>
<MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle+MoveRepeat+LeftRelease+Leave</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{ (M:X) (>L:LastPos) }
(M:Event) 'WheelUp' scmi 0 == if{ 0 (>K:RUDDER_TRIM_RIGHT) }
(M:Event) 'WheelDown' scmi 0 == if{ 0 (>K:RUDDER_TRIM_LEFT) }
(M:Event) 'LeftDrag' scmi 0 == if{
(M:X) (L:LastPos) - 5 > if{ (L:RudderTrimtabPos) 2 + (>L:RudderTrimtabPos) (M:X) (>L:LastPos) }
(M:X) (L:LastPos) - -5 < if{ (L:RudderTrimtabPos) 2 - (>L:RudderTrimtabPos) (M:X) (>L:LastPos) } }
(M:Event) 'LeftRelease' scmi 0 == if{ 50 (>L:RudderTrimtabPos) }
(M:Event) 'Leave' scmi 0 == if{ 50 (>L:RudderTrimtabPos) }
</CallbackCode>
</MouseRect>
</PartInfo>
</Behaviors>
But for some reason my mouse cursor doesn't change when I hover over the Object, did I miss anything ?