The code below is used to make certain parts visible on my warning panel, which it does do. Press the button...they all light up. Button stays in...lights stay on. Press button again...lights go off. Button returns to the out position.
How would I modify the code to press the button in and hold...parts stay visible...release the button or leave the button...button returns to normal position...warning lights go out.
How would I modify the code to press the button in and hold...parts stay visible...release the button or leave the button...button returns to normal position...warning lights go out.
Code:
<PartInfo>
<Name>Warning_Test_Button</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:lights test,bool) 50 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+Leave</MouseFlags>
<CallbackCode>
(L:lights test,bool) ! (>L:lights test,bool)
</CallbackCode>
<Tooltip>Warning Panel Test Button</Tooltip>
</MouseRect>
</PartInfo>

