- Messages
- 10,163
- Country

Hey all,
How is the proper way to write a click/on and release? (Example; test button; push (blinkie lights come on), release (blinkie lights go back to sleep).
I looked through the FS2004 Panel SDK and couldn't find this. It has to do with LeftRelease mouse event.
This is the only example I have which is complicated enough to throw me off on how it works.
I do not fully understand what 'scmp' means, but from what I see above, it stays at zero for both LeftSingle and LeftRelease, so that must mean animation returns to zero KF point?
So would the following be proper?
How would your Var event be written (typically) for the LeftRelease?
How is the proper way to write a click/on and release? (Example; test button; push (blinkie lights come on), release (blinkie lights go back to sleep).
I looked through the FS2004 Panel SDK and couldn't find this. It has to do with LeftRelease mouse event.
This is the only example I have which is complicated enough to throw me off on how it works.
Code:
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>(M:Event) 'LeftSingle' scmp 0 == if{ (L:LHC_WHEELSKIRTS_DISPLAY,enum) 1 + 2 % (>L:LHC_WHEELSKIRTS_DISPLAY,enum) 1 (>L:XMLSND4,enum) 1 (>L:lhc_Push_WheelSKirts,bool) } (M:Event) 'LeftRelease' scmp 0 == if{ (>L:lhc_Push_WheelSKirts,bool) }</CallbackCode>
I do not fully understand what 'scmp' means, but from what I see above, it stays at zero for both LeftSingle and LeftRelease, so that must mean animation returns to zero KF point?
So would the following be proper?
Code:
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == (>K:Meh)
(M:Event) 'LeftRelease' scmp 0 == 0 (>K:Meh)
</CallbackCode>
How would your Var event be written (typically) for the LeftRelease?



